[Python-checkins] CVS: python/dist/src/Objects funcobject.c,2.51,2.52

Fred L. Drake fdrake@users.sourceforge.net
Wed, 03 Apr 2002 13:42:47 -0800


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv14221/Objects

Modified Files:
	funcobject.c 
Log Message:
Fix the names of the classmethod and staticmethod constructors as passed to
PyArg_ParseTuple() as part of the format string.


Index: funcobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/funcobject.c,v
retrieving revision 2.51
retrieving revision 2.52
diff -C2 -d -r2.51 -r2.52
*** funcobject.c	18 Mar 2002 03:09:06 -0000	2.51
--- funcobject.c	3 Apr 2002 21:42:45 -0000	2.52
***************
*** 487,491 ****
  	PyObject *callable;
  
! 	if (!PyArg_ParseTuple(args, "O:callable", &callable))
  		return -1;
  	Py_INCREF(callable);
--- 487,491 ----
  	PyObject *callable;
  
! 	if (!PyArg_ParseTuple(args, "O:classmethod", &callable))
  		return -1;
  	Py_INCREF(callable);
***************
*** 619,623 ****
  	PyObject *callable;
  
! 	if (!PyArg_ParseTuple(args, "O:callable", &callable))
  		return -1;
  	Py_INCREF(callable);
--- 619,623 ----
  	PyObject *callable;
  
! 	if (!PyArg_ParseTuple(args, "O:staticmethod", &callable))
  		return -1;
  	Py_INCREF(callable);