summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2008-01-05 04:32:22 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2008-01-05 04:32:22 (GMT)
commit43b15097ccdb8cbfaf03a8705730cd5d7ab413fd (patch)
treefd7b864e1cb715324831cc21a211a6c42fca541d /Python
parent4c3eda3a847c927bc1594de70b2bf9d27975c8ba (diff)
downloadcpython-43b15097ccdb8cbfaf03a8705730cd5d7ab413fd.zip
cpython-43b15097ccdb8cbfaf03a8705730cd5d7ab413fd.tar.gz
cpython-43b15097ccdb8cbfaf03a8705730cd5d7ab413fd.tar.bz2
Interpreter wasn't displaying the location of a SyntaxError
Issue1692
Diffstat (limited to 'Python')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index f95ea83..faacb44 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -1103,7 +1103,7 @@ parse_syntax_error(PyObject *err, PyObject **message, const char **filename,
goto finally;
if (v == Py_None)
*filename = NULL;
- else if (! (*filename = PyString_AsString(v)))
+ else if (! (*filename = PyUnicode_AsString(v)))
goto finally;
Py_DECREF(v);