diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-04-18 14:57:54 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-04-18 14:57:54 (GMT) |
commit | ec9bac4226c2315c034147ece107fdc1f061e4b5 (patch) | |
tree | c35ffb3233e5ec2efe8aa3b16af477e199f1dbbb /Python | |
parent | da20cd2b6bf40d712f6296b9e21ff099b22aab71 (diff) | |
download | cpython-ec9bac4226c2315c034147ece107fdc1f061e4b5.zip cpython-ec9bac4226c2315c034147ece107fdc1f061e4b5.tar.gz cpython-ec9bac4226c2315c034147ece107fdc1f061e4b5.tar.bz2 |
Fix it for good :-)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/errors.c | 4 |
1 files changed, 1 insertions, 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; } |