From: Antoine Pitrou Date: Wed, 18 Apr 2012 14:57:54 +0000 (+0200) Subject: Fix it for good :-) X-Git-Tag: v3.3.0a3~170 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec9bac4226c2315c034147ece107fdc1f061e4b5;p=python Fix it for good :-) --- diff --git a/Python/errors.c b/Python/errors.c index 558404a1ee..36ab3d87fe 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; }