summaryrefslogtreecommitdiffstats
path: root/Modules/parsermodule.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-06-06 03:14:05 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-06-06 03:14:05 (GMT)
commitf0cdbad1b3c8b962c2bdce9ced843d7576db1810 (patch)
tree5eb17fd52c7e58f4d0a021d61d953d6684d3fbcc /Modules/parsermodule.c
parentb58359cca86c05b3fad185aeb7f754f9a7d318ab (diff)
downloadcpython-f0cdbad1b3c8b962c2bdce9ced843d7576db1810.zip
cpython-f0cdbad1b3c8b962c2bdce9ced843d7576db1810.tar.gz
cpython-f0cdbad1b3c8b962c2bdce9ced843d7576db1810.tar.bz2
always clear parser error
Diffstat (limited to 'Modules/parsermodule.c')
-rw-r--r--Modules/parsermodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index 1ffa896..f1679d7 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);
}