Commit 94bb7f6b authored by Stefan Behnel's avatar Stefan Behnel

fix exception message

parent c0e70e4a
......@@ -597,9 +597,9 @@ static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) {
if (!result) {
PyErr_Format(PyExc_NameError,
#if PY_MAJOR_VERSION >= 3
"global name '%U' is not defined", name);
"name '%U' is not defined", name);
#else
"global name '%s' is not defined", PyString_AS_STRING(name));
"name '%s' is not defined", PyString_AS_STRING(name));
#endif
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment