Convert time object to integer (instead of string)

This commit is contained in:
Sebastien Helleu 2012-07-21 17:38:16 +02:00
parent 4b44d000ee
commit f8bbe7b6c1

View file

@ -186,7 +186,7 @@ class Protocol:
value = self._obj_len_data(1) value = self._obj_len_data(1)
if value is None: if value is None:
return None return None
return str(value) return int(str(value))
def _obj_hashtable(self): def _obj_hashtable(self):
"""Read a hashtable in data (type for keys + type for values + count + items).""" """Read a hashtable in data (type for keys + type for values + count + items)."""