[Python-checkins] python/dist/src/Objects methodobject.c,2.43,2.44
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Sat, 04 Jan 2003 23:22:46 -0800
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv29396/python/Objects
Modified Files:
methodobject.c
Log Message:
PyCFunction_Call(): Combined two switch cases w/ identical bodies.
Index: methodobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/methodobject.c,v
retrieving revision 2.43
retrieving revision 2.44
diff -C2 -d -r2.43 -r2.44
*** methodobject.c 4 Jan 2003 00:37:53 -0000 2.43
--- methodobject.c 5 Jan 2003 07:22:44 -0000 2.44
***************
*** 71,74 ****
--- 71,75 ----
break;
case METH_VARARGS | METH_KEYWORDS:
+ case METH_OLDARGS | METH_KEYWORDS:
return (*(PyCFunctionWithKeywords)meth)(self, arg, kw);
case METH_NOARGS:
***************
*** 105,112 ****
}
break;
- case METH_OLDARGS | METH_KEYWORDS:
- return (*(PyCFunctionWithKeywords)meth)(self, arg, kw);
default:
- /* should never get here ??? */
PyErr_BadInternalCall();
return NULL;
--- 106,110 ----
***************
*** 268,272 ****
int i, n;
PyObject *v;
!
n = 0;
for (c = chain; c != NULL; c = c->link) {
--- 266,270 ----
int i, n;
PyObject *v;
!
n = 0;
for (c = chain; c != NULL; c = c->link) {