[Python-checkins] cpython: always clear parser error

benjamin.peterson python-checkins at python.org
Mon Jun 6 05:13:46 CEST 2011


http://hg.python.org/cpython/rev/9faa9270457e
changeset:   70654:9faa9270457e
user:        Benjamin Peterson <benjamin at python.org>
date:        Sun Jun 05 22:14:05 2011 -0500
summary:
  always clear parser error

files:
  Modules/parsermodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
--- a/Modules/parsermodule.c
+++ b/Modules/parsermodule.c
@@ -583,8 +583,8 @@
         }
         else {
             PyParser_SetError(&err);
-            PyParser_ClearError(&err);
         }
+        PyParser_ClearError(&err);
     }
     return (res);
 }

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list