PyErr_SyntaxLocationEx() uses PyUnicode_DecodeFSDefault(), instead of

PyUnicode_FromString(), to decode the filename.
This commit is contained in:
Victor Stinner 2010-10-17 19:03:16 +00:00
parent 5b5d8d58c7
commit 15a71cdad2
1 changed files with 1 additions and 1 deletions

View File

@ -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 {