-
Notifications
You must be signed in to change notification settings - Fork 46
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
[Bug]: config.py:is_blank_line regex throws a warning for invalid escape sequence in python 3.12 #36
Labels
Comments
gtjoseph
added a commit
to gtjoseph/testsuite
that referenced
this issue
Feb 15, 2024
Python 3.12 warns that regex sequences embedded in strings, like `"\s*"`, need to be double-escaped: `"\\s*"` Resolves: asterisk#36
asterisk-org-access-app bot
pushed a commit
that referenced
this issue
Feb 16, 2024
Python 3.12 warns that regex sequences embedded in strings, like `"\s*"`, need to be double-escaped: `"\\s*"` Resolves: #36
asterisk-org-access-app bot
pushed a commit
that referenced
this issue
Feb 16, 2024
Python 3.12 warns that regex sequences embedded in strings, like `"\s*"`, need to be double-escaped: `"\\s*"` Resolves: #36
asterisk-org-access-app bot
pushed a commit
that referenced
this issue
Feb 16, 2024
Python 3.12 warns that regex sequences embedded in strings, like `"\s*"`, need to be double-escaped: `"\\s*"` Resolves: #36
asterisk-org-access-app bot
pushed a commit
that referenced
this issue
Feb 16, 2024
Python 3.12 warns that regex sequences embedded in strings, like `"\s*"`, need to be double-escaped: `"\\s*"` Resolves: #36
asterisk-org-access-app bot
pushed a commit
that referenced
this issue
Feb 16, 2024
Python 3.12 warns that regex sequences embedded in strings, like `"\s*"`, need to be double-escaped: `"\\s*"` Resolves: #36
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Severity
Trivial
Versions
18,20,21,master
Components/Modules
lib/python/asterisk/config.py
Operating Environment
Python 3.12
Frequency of Occurrence
Constant
Issue Description
Python 3.12 now throws warnings about invalid escape sequences in regexes.
For instance, in
re.match("\s*(?:;.*)?$")
, the single backslash for the whitespace matcher needs to be doubled:re.match("\\s*(?:;.*)?$")
.Relevant log output
Asterisk Issue Guidelines
The text was updated successfully, but these errors were encountered: