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

fix: use raw strings for regex #95

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Conversation

benlaverriere
Copy link
Contributor

@benlaverriere benlaverriere commented Feb 27, 2024

As of python/cpython#98401 (released in Python 3.12.0), invalid escape sequences emit louder warnings, as described in #89 and #33. This patch uses raw strings for compiled regexes to suppress the warnings.

I'm definitely not a Python expert, so I'm very open to input about other ways to solve the problem!

As of python/cpython#98401 (released in Python 3.12.0), invalid escape sequences emit louder warnings, as described in hallettj#89. This patch uses raw strings for compiled regexes to suppress the warnings.
@benlaverriere benlaverriere changed the title Use raw strings for regex fix: use raw strings for regex Feb 27, 2024
@hallettj
Copy link
Owner

Thanks, I really appreciate the fix! I'll make sure everything works and get this merged. And also thank you for setting the title in the right format for my automatic changelog thing.

Fixes #89

@hallettj hallettj merged commit a4c636c into hallettj:main Feb 27, 2024
7 checks passed
@hallettj
Copy link
Owner

🎉 This PR is included in version 3.1.1 🎉

The release is available on:

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 this pull request may close these issues.

None yet

2 participants