cpython/Tools/c-analyzer/c_parser
Victor Stinner a60ddd31be
gh-98401: Invalid escape sequences emits SyntaxWarning (#99011)
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.

Octal escapes with value larger than 0o377 (ex: "\477"), deprecated
in Python 3.11, now produce a SyntaxWarning, instead of
DeprecationWarning. In a future Python version they will be
eventually a SyntaxError.

codecs.escape_decode() and codecs.unicode_escape_decode() are left
unchanged: they still emit DeprecationWarning.

* The parser only emits SyntaxWarning for Python 3.12 (feature
  version), and still emits DeprecationWarning on older Python
  versions.
* Fix SyntaxWarning by using raw strings in Tools/c-analyzer/ and
  wasm_build.py.
2022-11-03 17:53:25 +01:00
..
parser gh-90110: Update the c-analyzer Tool (gh-96058) 2022-08-17 16:54:59 -06:00
preprocessor gh-90110: Fix the c-analyzer Tool (gh-96731) 2022-09-12 11:09:31 -06:00
__init__.py gh-90110: Fix the c-analyzer Tool (gh-96731) 2022-09-12 11:09:31 -06:00
__main__.py bpo-36876: [c-analyzer tool] Add a "capi" subcommand to the c-analyzer tool. (gh-23918) 2020-12-24 11:04:19 -07:00
_state_machine.py gh-98401: Invalid escape sequences emits SyntaxWarning (#99011) 2022-11-03 17:53:25 +01:00
datafiles.py bpo-36876: [c-analyzer tool] Tighten up the results and output. (GH-23431) 2020-11-20 15:39:28 -07:00
info.py gh-90110: Update the c-analyzer Tool (gh-96255) 2022-08-25 15:46:08 -06:00
match.py bpo-36876: Small adjustments to the C-analyzer tool. (GH-23045) 2020-10-30 15:46:52 -06:00
source.py bpo-36876: Fix the C analyzer tool. (GH-22841) 2020-10-22 18:42:51 -06:00