diff Python/errors.c @ 76391:cb6811eb20ef

Fix it for good :-)
author Antoine Pitrou <solipsis@pitrou.net>
date Wed, 18 Apr 2012 16:57:54 +0200
parents e8c87226bcb3
children 9fdec1354af4
line wrap: on
line diff
--- a/Python/errors.c	Wed Apr 18 10:48:00 2012 -0400
+++ b/Python/errors.c	Wed Apr 18 16:57:54 2012 +0200
@@ -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;
     }