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 /Python | |
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 'Python')
-rw-r--r-- | Python/frozenmain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/frozenmain.c b/Python/frozenmain.c index 8743e08..f8be165 100644 --- a/Python/frozenmain.c +++ b/Python/frozenmain.c @@ -53,7 +53,7 @@ Py_FrozenMain(int argc, char **argv) PyWinFreeze_ExeInit(); #endif - if (Py_VerboseFlag) { + if (_Py_GetConfig()->verbose) { fprintf(stderr, "Python %s\n%s\n", Py_GetVersion(), Py_GetCopyright()); } |