fixed 0x80000000L -> 0x80000000 for py3

This commit is contained in:
mdipierro committed 2020-03-21 18:25:34 -07:00
1 parent bf0cf06343
commit e004215ea6
2 files changed
+3 -3

No files matched your search

+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