]> granicus.if.org Git - python/commitdiff
always clear parser error
authorBenjamin Peterson <benjamin@python.org>
Mon, 6 Jun 2011 03:14:05 +0000 (22:14 -0500)
committerBenjamin Peterson <benjamin@python.org>
Mon, 6 Jun 2011 03:14:05 +0000 (22:14 -0500)
Modules/parsermodule.c

index 1ffa8963ff72bf2ea9a5c52e9fd2d889eeeeb0f7..f1679d72d0cf80890fadf3c118bbd73b7a127f74 100644 (file)
@@ -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);
 }