From 43b15097ccdb8cbfaf03a8705730cd5d7ab413fd Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Sat, 5 Jan 2008 04:32:22 +0000 Subject: Interpreter wasn't displaying the location of a SyntaxError Issue1692 --- Python/pythonrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pythonrun.c') 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); -- cgit v1.2.1