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

brett.cannon python-checkins at python.org
Thu Mar 1 19:54:07 CET 2007


Author: brett.cannon
Date: Thu Mar  1 19:54:06 2007
New Revision: 54065

Modified:
   python/branches/p3yk_no_args_on_exc/Objects/exceptions.c
Log:
Swith to PyArg_UnpackTuple() for BaseException_init.


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 19:54:06 2007
@@ -42,7 +42,7 @@
     if (!_PyArg_NoKeywords(self->ob_type->tp_name, kwds))
         return -1;
 
-    if (!PyArg_ParseTuple(args, "|O:BaseException", &message))
+    if (!PyArg_UnpackTuple(args, "BaseException", 0, 1, &message))
 	    return -1;
 
     if (message) {


More information about the Python-checkins mailing list