コード例 #1
0
ファイル: doctemplate.py プロジェクト: tschalch/pyTray
def _evalMeasurement(n):
    if type(n) is type(""):
        from paraparser import _num

        n = _num(n)
        if type(n) is type(()):
            n = n[1]
    return n
コード例 #2
0
def _evalMeasurement(n):
    if type(n) is type(''):
        from paraparser import _num
        n = _num(n)
        if type(n) is type(()): n = n[1]
    return n