Skip to content

Commit

Permalink
fix python SyntaxWarnings
Browse files Browse the repository at this point in the history
Cleanest to use raw strings.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Feb 19, 2025
1 parent 7d7e8a6 commit 7ac738c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/bugfixes/redmine/test_issue_1108.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class CheckDumpSubFiles(metaclass=system_tests.CaseMeta):
2 | 120 | Caption | 12 | Classic View
17987 | 0xffd9 EOI
""",
"""STRUCTURE OF PNG FILE: """ + filenames[1] + """
"""STRUCTURE OF PNG FILE: """ + filenames[1] + r"""
address | chunk | length | data | checksum
8 | IHDR | 13 | ...@........ | 0x7f775da4
33 | iCCP | 1404 | icc..x...i8........af\...w_3.. | 0x363e2409
Expand Down
2 changes: 1 addition & 1 deletion tests/bugfixes/redmine/test_issue_662.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class UnicodeEncodingOfExifUserCommentTag(metaclass=system_tests.CaseMeta):
""",
"",
"""ExifTag
r"""ExifTag
0000 1a 00 00 00 ....
UserComment
Expand Down
2 changes: 1 addition & 1 deletion tests/bugfixes/redmine/test_issue_922.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class AddMinusPSOption(metaclass=CaseMeta):
<?xpacket end="w"?>""",
"""STRUCTURE OF PNG FILE: $png_bug_file
r"""STRUCTURE OF PNG FILE: $png_bug_file
address | chunk | length | data | checksum
8 | IHDR | 13 | ...@........ | 0x7f775da4
33 | zTXt | 8769 | Raw profile type exif..x...[r. | 0x4a89d860
Expand Down

0 comments on commit 7ac738c

Please sign in to comment.