]> granicus.if.org Git - python/commitdiff
do_strip(): Fixed cut-and-paste error; this function should check for
authorBarry Warsaw <barry@python.org>
Wed, 15 Dec 1999 02:22:52 +0000 (02:22 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 15 Dec 1999 02:22:52 +0000 (02:22 +0000)
zero arguments (found by Marc Lemburg).

Objects/stringobject.c

index 264ed9ac31d1544b624f243bb3e1b738988b37f1..dc47f9e24d4973478a3aed003491ce4d8958e7f8 100644 (file)
@@ -925,10 +925,8 @@ do_strip(self, args, striptype)
 {
        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))
+       if (!PyArg_ParseTuple(args, ""))
                return NULL;
 
        i = 0;