Commit 153a27ce authored by Barry Warsaw's avatar Barry Warsaw

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

zero arguments (found by Marc Lemburg).
parent cd975761
...@@ -925,10 +925,8 @@ do_strip(self, args, striptype) ...@@ -925,10 +925,8 @@ do_strip(self, args, striptype)
{ {
char *s = PyString_AS_STRING(self); char *s = PyString_AS_STRING(self);
int len = PyString_GET_SIZE(self), i, j; 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; return NULL;
i = 0; i = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment