diff Python/pythonrun.c @ 44486:5a0cbe36a603

Interpreter wasn't displaying the location of a SyntaxError Issue1692
author Kurt B. Kaiser <kbk@shore.net>
date Sat, 05 Jan 2008 04:32:22 +0000
parents ef5399b353c9
children fb5a6330f71b
line wrap: on
line diff
--- a/Python/pythonrun.c	Fri Jan 04 15:35:04 2008 +0000
+++ b/Python/pythonrun.c	Sat Jan 05 04:32:22 2008 +0000
@@ -1103,7 +1103,7 @@
 		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);