bpo-46110: Restore commit e9898bf153

This restores commit e9898bf153 .
This commit is contained in:
Pablo Galindo Salgado 2022-01-03 19:54:06 +00:00 • committed by GitHub
parent 9d6a239a34
commit dd6c35761a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4602 additions and 3197 deletions

File diff suppressed because it is too large Load diff

View file

@ -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;