Skip to content

Fix SyntaxWarning: invalid escape sequence '\.'#7

Open
danr-lambdal wants to merge 1 commit intomysiki:masterfrom
danr-lambdal:resolve-SyntaxWarning-invalid-escape-sequence
Open

Fix SyntaxWarning: invalid escape sequence '\.'#7
danr-lambdal wants to merge 1 commit intomysiki:masterfrom
danr-lambdal:resolve-SyntaxWarning-invalid-escape-sequence

Conversation

@danr-lambdal
Copy link

Since Python 3.12, a SyntaxWarning is emitted when using an escape sequence in string literals. In the future this will become a SyntaxError.

Fix by using raw strings, per re best practices.

Since Python 3.12, a SyntaxWarning is emitted when using an escape sequence in
string literals. In the future this will become a SyntaxError.

Fix by using raw strings, per `re` best practices.

Signed-off-by: Dan Rue <danr@lambdal.com>
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.

1 participant

Comments