Skip to content

Remove deprecated sre_constants usage #263

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

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

MetRonnie
Copy link
Contributor

Closes #229

@MetRonnie MetRonnie added this to the 3.2.0 milestone Jan 14, 2025
@MetRonnie MetRonnie self-assigned this Jan 14, 2025
"""Parse data_string according to the regular expression in regex."""
try:
compiled_regex = re.compile(regex)
except sre_constants.error:
except Exception:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough.

@oliver-sanders oliver-sanders merged commit 37401de into metomi:master Jan 17, 2025
9 checks passed
@MetRonnie MetRonnie deleted the sre_constants branch January 17, 2025 11:19
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.

sre_constants is deprecated
2 participants