summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-04-05 00:39:01 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-04-05 00:39:01 +0200
commit7f2fee36401f7b987a368fe043637b3ae7116600 (patch)
treed21cec17c440b8255cf9bc4c79269d6bfb3253f0 /Modules
parent9bdb43e43f9f5d80699e297c2f73c106179b33d5 (diff)
downloadcpython-git-7f2fee36401f7b987a368fe043637b3ae7116600.tar.gz
Issue #10785: Store the filename as Unicode in the Python parser.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/parsermodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index 3cdf1359a6..e5b4e55943 100644
--- a/Modules/parsermodule.c
+++ b/Modules/parsermodule.c
@@ -584,6 +584,7 @@ parser_do_parse(PyObject *args, PyObject *kw, char *argspec, int type)
else
PyParser_SetError(&err);
}
+ PyParser_ClearError(&err);
return (res);
}