From 5492dcdbf4a2fff801fc6d8230609f2ed3f7b179 Mon Sep 17 00:00:00 2001 From: NoDRM Date: Thu, 21 Dec 2023 11:57:39 +0100 Subject: [PATCH] More FileOpen fixes --- DeDRM_plugin/ineptpdf.py | 2 +- Other_Tools/Tetrachroma_FileOpen_ineptpdf/ineptpdf_fileopen.pyw | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DeDRM_plugin/ineptpdf.py b/DeDRM_plugin/ineptpdf.py index 15ea7fc..100dff7 100755 --- a/DeDRM_plugin/ineptpdf.py +++ b/DeDRM_plugin/ineptpdf.py @@ -2042,7 +2042,7 @@ class PDFParser(PSStackParser): except PDFNoValidXRef: # fallback self.seek(0) - pat = re.compile(rb'^(\\d+)\\s+(\\d+)\\s+obj\\b') + pat = re.compile(br'^(\\d+)\\s+(\\d+)\\s+obj\\b') offsets = {} xref = PDFXRef() while 1: diff --git a/Other_Tools/Tetrachroma_FileOpen_ineptpdf/ineptpdf_fileopen.pyw b/Other_Tools/Tetrachroma_FileOpen_ineptpdf/ineptpdf_fileopen.pyw index 5e647e1..f4f641d 100644 --- a/Other_Tools/Tetrachroma_FileOpen_ineptpdf/ineptpdf_fileopen.pyw +++ b/Other_Tools/Tetrachroma_FileOpen_ineptpdf/ineptpdf_fileopen.pyw @@ -2643,7 +2643,7 @@ class PDFParser(PSStackParser): except PDFNoValidXRef: # fallback self.seek(0) - pat = re.compile(rb'^(\d+)\s+(\d+)\s+obj\b') + pat = re.compile(br'^(\\d+)\\s+(\\d+)\\s+obj\\b') offsets = {} xref = PDFXRef() while 1: