diff options
Diffstat (limited to 'Modules/parsermodule.c')
-rw-r--r-- | Modules/parsermodule.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index 3cdf135..f1679d7 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -581,8 +581,10 @@ parser_do_parse(PyObject *args, PyObject *kw, char *argspec, int type) if (res) ((PyST_Object *)res)->st_flags.cf_flags = flags & PyCF_MASK; } - else + else { PyParser_SetError(&err); + } + PyParser_ClearError(&err); } return (res); } |