diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2022-01-03 19:54:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-03 19:54:06 (GMT) |
commit | dd6c35761a4cd417e126a2d51dd0b89c8a30e5de (patch) | |
tree | ae428b310505891619b4a6a0e65f7aca7db7ada1 /Parser/pegen.c | |
parent | 9d6a239a34a66e16188d76c23a3a770515ca44ca (diff) | |
download | cpython-dd6c35761a4cd417e126a2d51dd0b89c8a30e5de.zip cpython-dd6c35761a4cd417e126a2d51dd0b89c8a30e5de.tar.gz cpython-dd6c35761a4cd417e126a2d51dd0b89c8a30e5de.tar.bz2 |
bpo-46110: Restore commit e9898bf153d26059261ffef11f7643ae991e2a4c
This restores commit e9898bf153d26059261ffef11f7643ae991e2a4c .
Diffstat (limited to 'Parser/pegen.c')
-rw-r--r-- | Parser/pegen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/pegen.c b/Parser/pegen.c index 870085e..cfea1c8 100644 --- a/Parser/pegen.c +++ b/Parser/pegen.c @@ -815,6 +815,7 @@ void * _PyPegen_run_parser(Parser *p) { void *res = _PyPegen_parse(p); + assert(p->level == 0); if (res == NULL) { if (PyErr_Occurred() && !PyErr_ExceptionMatches(PyExc_SyntaxError)) { return NULL; |