From: Barry Warsaw Date: Wed, 15 Dec 1999 02:22:52 +0000 (+0000) Subject: do_strip(): Fixed cut-and-paste error; this function should check for X-Git-Tag: v1.6a1~634 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=153a27ceb2b53056d3bd4b0b3e8058d94acdadae;p=python do_strip(): Fixed cut-and-paste error; this function should check for zero arguments (found by Marc Lemburg). --- diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 264ed9ac31..dc47f9e24d 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -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;