do_strip(): Fixed cut-and-paste error; this function should check for

zero arguments (found by Marc Lemburg).
This commit is contained in:
Barry Warsaw 1999-12-15 02:22:52 +00:00
parent cd97576184
commit 153a27ceb2
1 changed files with 1 additions and 3 deletions

View 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;