From: Benjamin Peterson Date: Mon, 6 Jun 2011 03:14:05 +0000 (-0500) Subject: always clear parser error X-Git-Tag: v3.3.0a1~2178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0cdbad1b3c8b962c2bdce9ced843d7576db1810;p=python always clear parser error --- diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index 1ffa8963ff..f1679d72d0 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -583,8 +583,8 @@ parser_do_parse(PyObject *args, PyObject *kw, char *argspec, int type) } else { PyParser_SetError(&err); - PyParser_ClearError(&err); } + PyParser_ClearError(&err); } return (res); }