Skip to content

Commit ec9bac4

Browse files
committed
Fix it for good :-)
1 parent da20cd2 commit ec9bac4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Python/errors.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ PyErr_SetImportError(PyObject *msg, PyObject *name, PyObject *path)
593593
if (msg == NULL)
594594
return NULL;
595595

596-
args = PyTuple_New(0);
596+
args = PyTuple_New(1);
597597
if (args == NULL)
598598
return NULL;
599599

@@ -604,12 +604,10 @@ PyErr_SetImportError(PyObject *msg, PyObject *name, PyObject *path)
604604
}
605605

606606
if (name == NULL) {
607-
Py_INCREF(Py_None);
608607
name = Py_None;
609608
}
610609

611610
if (path == NULL) {
612-
Py_INCREF(Py_None);
613611
path = Py_None;
614612
}
615613

0 commit comments

Comments
 (0)