Skip to content

Commit f236fa4

Browse files
committed
Fix invalid escape sequences
Fixes SyntaxWarnings: .../site-packages/pdfrw/objects/pdfstring.py:6: SyntaxWarning: invalid escape sequence '\(' .../site-packages/pdfrw/objects/pdfstring.py:367: SyntaxWarning: invalid escape sequence '\['
1 parent a9d498d commit f236fa4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pdfrw/objects/pdfstring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# 2016 James Laird-Wah, Sydney, Australia
44
# MIT license -- See LICENSE.txt for details
55

6-
"""
6+
r"""
77
88
================================
99
PdfString encoding and decoding
@@ -404,7 +404,7 @@ def init_unescapes(cls):
404404
return unescape_func
405405

406406
def decode_literal(self):
407-
"""Decode a PDF literal string, which is enclosed in parentheses ()
407+
r"""Decode a PDF literal string, which is enclosed in parentheses ()
408408
409409
Many pdfrw users never decode strings, so defer creating
410410
data structures to do so until the first string is decoded.

0 commit comments

Comments
 (0)