From 21a7b13524e601df473bad494b69db06a9ad6450 Mon Sep 17 00:00:00 2001 From: Aldo Bleeker Date: Sun, 14 Feb 2021 12:50:55 +0100 Subject: [PATCH] Fix for Python 3 --- DeDRM_plugin/ineptpdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeDRM_plugin/ineptpdf.py b/DeDRM_plugin/ineptpdf.py index 669856c..9eb2154 100755 --- a/DeDRM_plugin/ineptpdf.py +++ b/DeDRM_plugin/ineptpdf.py @@ -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: