diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-17 19:03:16 +0000 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-17 19:03:16 +0000 |
commit | aa76b5753570a74943a52cb4d01153319a4967be (patch) | |
tree | e9ecc86c97d672ff80464c9222897745247578fc /Python/errors.c | |
parent | 9e836e62a8e0aff0d9ff4ce3d9ccfa49e7de714d (diff) | |
download | cpython-aa76b5753570a74943a52cb4d01153319a4967be.tar.gz |
PyErr_SyntaxLocationEx() uses PyUnicode_DecodeFSDefault(), instead of
PyUnicode_FromString(), to decode the filename.
Diffstat (limited to 'Python/errors.c')
-rw-r--r-- | Python/errors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c index a24095dff9..e3486b95c5 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -819,7 +819,7 @@ PyErr_SyntaxLocationEx(const char *filename, int lineno, int col_offset) } } if (filename != NULL) { - tmp = PyUnicode_FromString(filename); + tmp = PyUnicode_DecodeFSDefault(filename); if (tmp == NULL) PyErr_Clear(); else { |