mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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)
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue