commit | ec9bac4226c2315c034147ece107fdc1f061e4b5 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Wed Apr 18 16:57:54 2012 +0200 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Wed Apr 18 16:57:54 2012 +0200 |
tree | c35ffb3233e5ec2efe8aa3b16af477e199f1dbbb | |
parent | da20cd2b6bf40d712f6296b9e21ff099b22aab71 [diff] [blame] |
Fix it for good :-)
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 @@ if (msg == NULL) return NULL; - args = PyTuple_New(0); + args = PyTuple_New(1); if (args == NULL) return NULL; @@ -604,12 +604,10 @@ } if (name == NULL) { - Py_INCREF(Py_None); name = Py_None; } if (path == NULL) { - Py_INCREF(Py_None); path = Py_None; }