Skip to content

Commit

Permalink
BUG: "invalid escape sequence" SyntaxError (#522)
Browse files Browse the repository at this point in the history
This happens when the library is used with `-Werror`, since `\c` is not a valid Python escape sequence.
  • Loading branch information
niklasb committed Apr 6, 2022
1 parent 1cde559 commit dacc6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyPDF2/generic.py
Expand Up @@ -345,7 +345,7 @@ def readStringFromStream(stream):
b_("t") : b_("\t"),
b_("b") : b_("\b"),
b_("f") : b_("\f"),
b_("c") : b_("\c"),
b_("c") : b_(r"\c"),
b_("(") : b_("("),
b_(")") : b_(")"),
b_("/") : b_("/"),
Expand Down

0 comments on commit dacc6b7

Please sign in to comment.