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

Fixed SyntaxWarning in invalid escape sequences #1459

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Simon-Brandt
Copy link

Fix #1457

To prevent a SyntaxWarning (or in the future a SyntaxError) for escaped characters in Unicode strings that the Python parser does not interpret (but the regex parser does), I modified the respective strings, marking them as either raw strings or doubling the backslashes, as appropriate for the given environment.

@asl asl requested a review from andrewprzh March 25, 2025 15:57
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.

SyntaxWarning for invalid escape sequences in Python 3.12
1 participant