fixed 0x80000000L -> 0x80000000 for py3

This commit is contained in:
mdipierro
2020-03-21 18:25:34 -07:00
parent bf0cf06343
commit e004215ea6
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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