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

Global inline flags bug since Python 3.11 #31

Closed
NieWil opened this issue Dec 4, 2022 · 2 comments
Closed

Global inline flags bug since Python 3.11 #31

NieWil opened this issue Dec 4, 2022 · 2 comments

Comments

@NieWil
Copy link

NieWil commented Dec 4, 2022

Hello,
The regular expression here is no longer tolerated by the version of Python 3.11
"Global inline flags (e.g. (?i)) can now only be used at the start of the regular expressions"

Small suggested fix: _directive_re = re.compile(r'(?m)^\s*#.*?$')

@alexbrasetvik
Copy link
Contributor

Fixed by #32.

@NieWil
Copy link
Author

NieWil commented Apr 12, 2023

Thanks

Fixed by #32.

@NieWil NieWil closed this as completed Apr 12, 2023
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

No branches or pull requests

2 participants