From 153a27ceb2b53056d3bd4b0b3e8058d94acdadae Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 15 Dec 1999 02:22:52 +0000 Subject: [PATCH] do_strip(): Fixed cut-and-paste error; this function should check for zero arguments (found by Marc Lemburg). --- Objects/stringobject.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.40.0