mirror of
https://github.com/apprenticeharper/DeDRM_tools
synced 2024-11-17 07:47:28 +01:00
Fix for Python 3
This commit is contained in:
parent
52bdbe95c9
commit
21a7b13524
1 changed files with 1 additions and 1 deletions
|
@ -442,7 +442,7 @@ def nunpack(s, default=0):
|
||||||
elif l == 2:
|
elif l == 2:
|
||||||
return struct.unpack('>H', s)[0]
|
return struct.unpack('>H', s)[0]
|
||||||
elif l == 3:
|
elif l == 3:
|
||||||
return struct.unpack('>L', '\x00'+s)[0]
|
return struct.unpack('>L', b'\x00'+s)[0]
|
||||||
elif l == 4:
|
elif l == 4:
|
||||||
return struct.unpack('>L', s)[0]
|
return struct.unpack('>L', s)[0]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue