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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0cdbad1b3c8b962c2bdce9ced843d7576db1810;p=thirdparty%2FPython%2Fcpython.git always clear parser error --- diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index 1ffa8963ff72..f1679d72d0cf 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); }