Fix it for good :-)

This commit is contained in:
Antoine Pitrou 2012-04-18 16:57:54 +02:00
parent da20cd2b6b
commit ec9bac4226
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}