]> xmof Git - DeDRM.git/commitdiff
Fix for Python 3
authorAldo Bleeker <mail@ableeker.demon.nl>
Sun, 14 Feb 2021 11:50:55 +0000 (12:50 +0100)
committerAldo Bleeker <mail@ableeker.demon.nl>
Sun, 14 Feb 2021 11:50:55 +0000 (12:50 +0100)
DeDRM_plugin/ineptpdf.py

index 669856c96539b94905a755758e2652a528f1e5ed..9eb2154a991a3035c9e821e71c287c74c16d3371 100755 (executable)
@@ -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: