From 7beb129a563e04b1122221fbb00ad3e65c9d01e5 Mon Sep 17 00:00:00 2001 From: David Huggins-Daines Date: Wed, 10 Jul 2024 15:37:15 -0400 Subject: [PATCH] fix: actually use chrcode which we went to such trouble to get --- pdfminer/psparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdfminer/psparser.py b/pdfminer/psparser.py index 8fc61ed2..b4869560 100755 --- a/pdfminer/psparser.py +++ b/pdfminer/psparser.py @@ -452,7 +452,7 @@ def _parse_string_1(self, s: bytes, i: int) -> int: elif self.oct: chrcode = int(self.oct, 8) assert chrcode < 256, "Invalid octal %s (%d)" % (repr(self.oct), chrcode) - self._curtoken += bytes((int(self.oct, 8),)) + self._curtoken += bytes((chrcode,)) self._parse1 = self._parse_string return i