[Python-checkins] CVS: python/dist/src/Objects stringobject.c,2.52,2.53
Barry A. Warsaw
bwarsaw@cnri.reston.va.us
Tue, 14 Dec 1999 21:22:55 -0500 (EST)
Update of /projects/cvsroot/python/dist/src/Objects
In directory anthem:/home/bwarsaw/projects/python/Objects
Modified Files:
stringobject.c
Log Message:
do_strip(): Fixed cut-and-paste error; this function should check for
zero arguments (found by Marc Lemburg).
Index: stringobject.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Objects/stringobject.c,v
retrieving revision 2.52
retrieving revision 2.53
diff -C2 -r2.52 -r2.53
*** stringobject.c 1999/10/12 19:54:48 2.52
--- stringobject.c 1999/12/15 02:22:52 2.53
***************
*** 926,933 ****
char *s = PyString_AS_STRING(self);
int len = PyString_GET_SIZE(self), i, j;
- PyObject *scobj = NULL;
- int count = -1;
! if (!PyArg_ParseTuple(args, "|Oi", scobj, count))
return NULL;
--- 926,931 ----
char *s = PyString_AS_STRING(self);
int len = PyString_GET_SIZE(self), i, j;
! if (!PyArg_ParseTuple(args, ""))
return NULL;