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 potential SyntaxError when >= Python 3.12 (regex) #281

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

alexander-beedie
Copy link
Contributor

One of the regexes hadn't been set as a raw string; fixing that can avoid the following error on Python 3.12:

E       and not re.match(".*\[.*[dmhys].*\]", format_str)
E                        ^^^^^^^^^^^^^^^^^^^
E   SyntaxError: invalid escape sequence '\['

@dilshod dilshod merged commit ae8db08 into dilshod:master Apr 15, 2024
@alexander-beedie alexander-beedie deleted the fix-regex-raw-string branch April 15, 2024 11:23
@ericpalakovichcarr
Copy link

@dilshod, thank you for all your work on this repo. Do you have any plans to create a new release with this change?

@dilshod
Copy link
Owner

dilshod commented Jul 29, 2024

@ericpalakovichcarr I just published 0.8.3 version.

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.

3 participants