Skip to content

Fix anomalous backslashes in strings - #39

Closed
pkolbus wants to merge 1 commit into
aboutcode-org:masterfrom
pkolbus:py38
Closed

Fix anomalous backslashes in strings#39
pkolbus wants to merge 1 commit into
aboutcode-org:masterfrom
pkolbus:py38

Conversation

@pkolbus

@pkolbus pkolbus commented Jun 29, 2019

Copy link
Copy Markdown
Contributor

Python 3.8 emits a SyntaxWarning for a string with an anomalous backslash, e.g.:

:127: SyntaxWarning: invalid escape sequence \s

Fix by adding the missing 'r' prefix.

Python 3.8 emits a SyntaxWarning for a string with an anomalous
backslash, e.g.:

  <unknown>:127: SyntaxWarning: invalid escape sequence \s

Fix by adding the missing 'r' prefix.

Change-Id: If9ad77c1e1707fa2432c8fc31eeb5e6d2d7200a5
Signed-off-by: Peter Kolbus <peter.kolbus@garmin.com>
@pombredanne

Copy link
Copy Markdown
Member

@pkolbus Sorry for seeing this only now!

@pombredanne

Copy link
Copy Markdown
Member

Thank you ++ Merging this!

@pombredanne

Copy link
Copy Markdown
Member

I cherry picked your commit in #46
Thank you again!

pombredanne pushed a commit that referenced this pull request May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants