support hardcoded 64-bit integers

This commit is contained in:
Jurriaan Bremer
2014-11-08 12:30:48 +01:00
parent 4bd5f9d081
commit 27bdb7c650

View File

@@ -242,8 +242,7 @@ def load(fp):
elif marshalType == 'i': elif marshalType == 'i':
return int(unpack('i', fp.read(4))[0]) return int(unpack('i', fp.read(4))[0])
elif marshalType == 'I': elif marshalType == 'I':
raise KeyError, marshalType return unpack('q', fp.read(8))[0]
return None
elif marshalType == 'x': elif marshalType == 'x':
raise KeyError, marshalType raise KeyError, marshalType
return None return None