From ec9bac4226c2315c034147ece107fdc1f061e4b5 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 18 Apr 2012 16:57:54 +0200 Subject: Fix it for good :-) --- Python/errors.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Python/errors.c b/Python/errors.c index 558404a..36ab3d8 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -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; } -- cgit v0.12