Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use raw strings for all regex patterns #71

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

The-Compiler
Copy link
Contributor

See https://docs.python.org/3/library/re.html#raw-string-notation

Even if those patterns do not contain any backslashes, it is a good practice to use raw strings for all regex patterns, to avoid footguns when changing the patterns in the future.

Also see 93244ad where this did already cause a SyntaxWarning before.

See https://docs.python.org/3/library/re.html#raw-string-notation

Even if those patterns do not contain any backslashes, it is a good practice to
use raw strings for all regex patterns, to avoid footguns when changing the
patterns in the future.

Also see 93244ad where this did already cause a
SyntaxWarning before.
@The-Compiler The-Compiler mentioned this pull request Sep 12, 2024
19 tasks
@akissinger akissinger merged commit 3c8b53c into akissinger:master Sep 17, 2024
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