Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Propagate and raise the errors caused by :c:func:`PyAST_Validate` in the
parser.
4 changes: 3 additions & 1 deletion Parser/pegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,9 @@ _PyPegen_run_parser(Parser *p)
p->start_rule == Py_file_input ||
p->start_rule == Py_eval_input)
{
assert(PyAST_Validate(res));
if (!PyAST_Validate(res)) {
return NULL;
}
}
#endif
return res;
Expand Down