From: NoDRM Date: Mon, 15 Nov 2021 07:40:18 +0000 (+0100) Subject: More PDF fixes X-Git-Url: http://git.xmof.duckdns.org/?a=commitdiff_plain;h=8e10b090a2b198f10e188018760256f9f6bbe4d4;p=DeDRM.git More PDF fixes --- 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: