You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using compiler-rt/lib/asan/scripts/asan_symbolize.py with Python 3.12, two syntax warnings concerning invalid escape sequences are being reported:
This is caused by a change in behaviour in Python 3.12 to eventually make such things syntax errors (see release notes).
I'd be happy to file a PR to fix this, but I'm not sure how the regexes are supposed to look / why the invalid escape sequences have been added in the first place.
The text was updated successfully, but these errors were encountered:
Changed in python version 3.12:
A backslash-character pair that is not a valid escape sequence now generates a
SyntaxWarning, instead of DeprecationWarning. For example, re.compile("\d+\.
\d+") now emits a SyntaxWarning ("\d" is an invalid escape sequence, use raw
strings for regular expression: re.compile(r"\d+\.\d+")). In a future Python
version, SyntaxError will eventually be raised, instead of SyntaxWarning.
(Contributed by Victor Stinner in llvmgh-98401.)
Closes: llvm#97815
See-also: https://docs.python.org/3/reference/lexical_analysis.html#escape-sequences
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
When using
compiler-rt/lib/asan/scripts/asan_symbolize.py
with Python 3.12, two syntax warnings concerning invalid escape sequences are being reported:This is caused by a change in behaviour in Python 3.12 to eventually make such things syntax errors (see release notes).
I'd be happy to file a PR to fix this, but I'm not sure how the regexes are supposed to look / why the invalid escape sequences have been added in the first place.
The text was updated successfully, but these errors were encountered: