diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-04 22:39:01 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-04 22:39:01 (GMT) |
commit | 7f2fee36401f7b987a368fe043637b3ae7116600 (patch) | |
tree | d21cec17c440b8255cf9bc4c79269d6bfb3253f0 /Modules | |
parent | 9bdb43e43f9f5d80699e297c2f73c106179b33d5 (diff) | |
download | cpython-7f2fee36401f7b987a368fe043637b3ae7116600.zip cpython-7f2fee36401f7b987a368fe043637b3ae7116600.tar.gz cpython-7f2fee36401f7b987a368fe043637b3ae7116600.tar.bz2 |
Issue #10785: Store the filename as Unicode in the Python parser.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/parsermodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index 3cdf135..e5b4e55 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); } |