summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2008-01-05 04:32:22 +0000
committerKurt B. Kaiser <kbk@shore.net>2008-01-05 04:32:22 +0000
commitf8ba78930c32b9cc00d8d2213292f9fcca79923f (patch)
treefd8deef6a312c7a6203e45199e04eaa7892b1e92 /Python/pythonrun.c
parent9c7653924ca75f2ee36fbc8b028eea146a025113 (diff)
downloadcpython-f8ba78930c32b9cc00d8d2213292f9fcca79923f.tar.gz
Interpreter wasn't displaying the location of a SyntaxError
Issue1692
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index f95ea831aa..faacb447d2 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);