diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2008-01-05 04:32:22 +0000 |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2008-01-05 04:32:22 +0000 |
commit | f8ba78930c32b9cc00d8d2213292f9fcca79923f (patch) | |
tree | fd8deef6a312c7a6203e45199e04eaa7892b1e92 /Python/pythonrun.c | |
parent | 9c7653924ca75f2ee36fbc8b028eea146a025113 (diff) | |
download | cpython-f8ba78930c32b9cc00d8d2213292f9fcca79923f.tar.gz |
Interpreter wasn't displaying the location of a SyntaxError
Issue1692
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 2 |
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); |