Skip to content

Fix potential SyntaxError when >= Python 3.12 (regex)#281

Merged
dilshod merged 1 commit intodilshod:masterfrom
alexander-beedie:fix-regex-raw-string
Apr 15, 2024
Merged

Fix potential SyntaxError when >= Python 3.12 (regex)#281
dilshod merged 1 commit intodilshod:masterfrom
alexander-beedie:fix-regex-raw-string

Conversation

@alexander-beedie
Copy link
Copy Markdown
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
Copy Markdown

@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
Copy Markdown
Owner

dilshod commented Jul 29, 2024

@ericpalakovichcarr I just published 0.8.3 version.

@rj667 rj667 mentioned this pull request Mar 20, 2026
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