mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Fix it for good :-)
This commit is contained in:
parent
da20cd2b6b
commit
ec9bac4226
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue