Commit 643702cb authored by 's avatar

fixed an assumption about trailing 'L' in str() of long

parent 88b382e1
......@@ -202,7 +202,12 @@ def xmlstr(v):
class Int(Scalar): pass
class Long(Scalar):
def value(self): return str(self._v)[:-1]
def value(self):
result = str(self._v)
if result[-1:] == 'L':
return result[:-1]
return result
class Float(Scalar): pass
class String(Scalar):
def __init__(self, v, encoding=''):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment