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

config.py: Properly escape regex pattern in is_blank_line #37

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

gtjoseph
Copy link
Member

Python 3.12 warns that regex sequences embedded in strings,
like "\s*", need to be double-escaped: "\\s*"

Resolves: #36

Python 3.12 warns that regex sequences embedded in strings,
like `"\s*"`, need to be double-escaped: `"\\s*"`

Resolves: asterisk#36
@gtjoseph
Copy link
Member Author

cherry-pick-to: 18
cherry-pick-to: 20
cherry-pick-to: 21
cherry-pick-to: certified/18.9

Copy link

Successfully merged to branch master and cherry-picked to ["18","20","21","certified/18.9"]

@gtjoseph gtjoseph deleted the master-fix-regex branch February 16, 2024 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: config.py:is_blank_line regex throws a warning for invalid escape sequence in python 3.12
1 participant