Commit ec9bac42 authored by Antoine Pitrou's avatar Antoine Pitrou

Fix it for good :-)

parent da20cd2b
......@@ -593,7 +593,7 @@ PyErr_SetImportError(PyObject *msg, PyObject *name, PyObject *path)
if (msg == NULL)
return NULL;
args = PyTuple_New(0);
args = PyTuple_New(1);
if (args == NULL)
return NULL;
......@@ -604,12 +604,10 @@ PyErr_SetImportError(PyObject *msg, PyObject *name, PyObject *path)
}
if (name == NULL) {
Py_INCREF(Py_None);
name = Py_None;
}
if (path == NULL) {
Py_INCREF(Py_None);
path = Py_None;
}
......
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