[Python-checkins] cpython: Fix it for good :-)

antoine.pitrou python-checkins at python.org
Wed Apr 18 17:01:04 CEST 2012


http://hg.python.org/cpython/rev/cb6811eb20ef
changeset:   76391:cb6811eb20ef
parent:      76389:e8c87226bcb3
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Wed Apr 18 16:57:54 2012 +0200
summary:
  Fix it for good :-)

files:
  Python/errors.c |  4 +---
  1 files changed, 1 insertions(+), 3 deletions(-)


diff --git a/Python/errors.c b/Python/errors.c
--- 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;
     }
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list