fixed 0x80000000L -> 0x80000000 for py3
This commit is contained in:
@@ -436,13 +436,13 @@ def encode_pair(name, value):
|
|||||||
if nameLength < 128:
|
if nameLength < 128:
|
||||||
s = chr(nameLength)
|
s = chr(nameLength)
|
||||||
else:
|
else:
|
||||||
s = struct.pack('!L', nameLength | 0x80000000L)
|
s = struct.pack('!L', nameLength | 0x80000000)
|
||||||
|
|
||||||
valueLength = len(value)
|
valueLength = len(value)
|
||||||
if valueLength < 128:
|
if valueLength < 128:
|
||||||
s += chr(valueLength)
|
s += chr(valueLength)
|
||||||
else:
|
else:
|
||||||
s += struct.pack('!L', valueLength | 0x80000000L)
|
s += struct.pack('!L', valueLength | 0x80000000)
|
||||||
|
|
||||||
return s + name + value
|
return s + name + value
|
||||||
|
|
||||||
|
|||||||
+1
-1
Submodule gluon/packages/dal updated: 090fb72094...c1c8621bcb
Reference in New Issue
Block a user