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 /Parser/parser.c | |
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 'Parser/parser.c')
-rw-r--r-- | Parser/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/parser.c b/Parser/parser.c index 08bf6d2..31ad9a0 100644 --- a/Parser/parser.c +++ b/Parser/parser.c @@ -2,7 +2,7 @@ #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 |