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