Skip to content

Commit 4bfde9f

Browse files
authored
STY: Fix one typo (#3125)
1 parent 75a6003 commit 4bfde9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pypdf/generic/_utils.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def read_hex_string_from_stream(
3535
return create_string_object(bytes(arr), forced_encoding)
3636

3737

38-
__ESPACE_DICT__ = {
38+
__ESCAPE_DICT__ = {
3939
b"n": ord(b"\n"),
4040
b"r": ord(b"\r"),
4141
b"t": ord(b"\t"),
@@ -79,7 +79,7 @@ def read_string_from_stream(
7979
elif tok == b"\\":
8080
tok = stream.read(1)
8181
try:
82-
txt.append(__ESPACE_DICT__[tok])
82+
txt.append(__ESCAPE_DICT__[tok])
8383
continue
8484
except KeyError:
8585
if b"0" <= tok <= b"7":
@@ -104,7 +104,7 @@ def read_string_from_stream(
104104
txt.append(i)
105105
continue
106106
elif tok in b"\n\r":
107-
# This case is hit when a backslash followed by a line
107+
# This case is hit when a backslash followed by a line
108108
# break occurs. If it's a multi-char EOL, consume the
109109
# second character:
110110
tok = stream.read(1)

0 commit comments

Comments
 (0)