diff options
author | Victor Stinner <vstinner@python.org> | 2022-05-24 20:35:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 20:35:08 (GMT) |
commit | 5115a1683154a1f2093aa7f2c6834e47d326cb7d (patch) | |
tree | 21d7aabb9346aaa6285ce1598225fdd6da350149 /Tools | |
parent | d2ef66a10be1250b13c32fbf3c0f9a9d2d98b124 (diff) | |
download | cpython-5115a1683154a1f2093aa7f2c6834e47d326cb7d.zip cpython-5115a1683154a1f2093aa7f2c6834e47d326cb7d.tar.gz cpython-5115a1683154a1f2093aa7f2c6834e47d326cb7d.tar.bz2 |
gh-93103: Parser uses PyConfig.parser_debug instead of Py_DebugFlag (#93106)
* Replace deprecated Py_DebugFlag with PyConfig.parser_debug in the
parser.
* Add Parser.debug member.
* Add tok_state.debug member.
* Py_FrozenMain(): Replace Py_VerboseFlag with PyConfig.verbose.
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/peg_generator/pegen/c_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/peg_generator/pegen/c_generator.py b/Tools/peg_generator/pegen/c_generator.py index 65bfd59..31bb505 100644 --- a/Tools/peg_generator/pegen/c_generator.py +++ b/Tools/peg_generator/pegen/c_generator.py @@ -32,7 +32,7 @@ EXTENSION_PREFIX = """\ #include "pegen.h" #if defined(Py_DEBUG) && defined(Py_BUILD_CORE) -# define D(x) if (Py_DebugFlag) x; +# define D(x) if (p->debug) { x; } #else # define D(x) #endif |