comparison 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
comparison
equal deleted inserted replaced
44477:646cff096039 44486:5a0cbe36a603
1101 1101
1102 if (!(v = PyObject_GetAttrString(err, "filename"))) 1102 if (!(v = PyObject_GetAttrString(err, "filename")))
1103 goto finally; 1103 goto finally;
1104 if (v == Py_None) 1104 if (v == Py_None)
1105 *filename = NULL; 1105 *filename = NULL;
1106 else if (! (*filename = PyString_AsString(v))) 1106 else if (! (*filename = PyUnicode_AsString(v)))
1107 goto finally; 1107 goto finally;
1108 1108
1109 Py_DECREF(v); 1109 Py_DECREF(v);
1110 if (!(v = PyObject_GetAttrString(err, "lineno"))) 1110 if (!(v = PyObject_GetAttrString(err, "lineno")))
1111 goto finally; 1111 goto finally;