Merge pull request #1529 from ableeker/python3

Fix for Python 3
pull/1545/head
Apprentice Harper 3 years ago committed by GitHub
commit 70a754fb46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -442,7 +442,7 @@ def nunpack(s, default=0):
elif l == 2:
return struct.unpack('>H', s)[0]
elif l == 3:
return struct.unpack('>L', '\x00'+s)[0]
return struct.unpack('>L', b'\x00'+s)[0]
elif l == 4:
return struct.unpack('>L', s)[0]
else:

Loading…
Cancel
Save