From 8e10b090a2b198f10e188018760256f9f6bbe4d4 Mon Sep 17 00:00:00 2001 From: NoDRM Date: Mon, 15 Nov 2021 08:40:18 +0100 Subject: [PATCH] More PDF fixes --- 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 e8385fe..110edae 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', b'\x00'+s)[0] + return struct.unpack('>L', bytes([0]) + s)[0] elif l == 4: return struct.unpack('>L', s)[0] else: