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