[Python-checkins] r54062 - python/branches/p3yk_no_args_on_exc/Objects/exceptions.c

brett.cannon python-checkins at python.org
Thu Mar 1 17:31:59 CET 2007


Author: brett.cannon
Date: Thu Mar  1 17:31:57 2007
New Revision: 54062

Modified:
   python/branches/p3yk_no_args_on_exc/Objects/exceptions.c
Log:
Add BaseException's name to its PyArg_ParseTuple() call.


Modified: python/branches/p3yk_no_args_on_exc/Objects/exceptions.c
==============================================================================
--- python/branches/p3yk_no_args_on_exc/Objects/exceptions.c	(original)
+++ python/branches/p3yk_no_args_on_exc/Objects/exceptions.c	Thu Mar  1 17:31:57 2007
@@ -42,7 +42,7 @@
     if (!_PyArg_NoKeywords(self->ob_type->tp_name, kwds))
         return -1;
 
-    if (!PyArg_ParseTuple(args, "|O", &message))
+    if (!PyArg_ParseTuple(args, "|O:BaseException", &message))
 	    return -1;
 
     if (message) {


More information about the Python-checkins mailing list