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

Invalid escape sequences in Python 3.12 are now SyntaxWarnings (to become SyntaxErrors) #66

Closed
StoneyJackson opened this issue Nov 4, 2023 · 3 comments · Fixed by #82
Labels

Comments

@StoneyJackson
Copy link
Member

They are warnings for now. But probably an easy fix, and the fix should be backwards compatible.

Screenshot 2023-11-03 at 9 36 26 PM

@StoneyJackson
Copy link
Member Author

@StoneyJackson StoneyJackson changed the title Python 3.12 deprecates illegal escape sequences in strings Invalid escape sequences in Python 3.12 are now SyntaxWarnings (to become SyntaxErrors) Nov 4, 2023
@jashelio
Copy link
Collaborator

jashelio commented Nov 4, 2023

Yes. Apparently it's an easy fix. Just make the literal strings raw by prepending them with an 'r'.

Copy link

🎉 This issue has been resolved in version 4.0.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants