Kaydet (Commit) 153a27ce authored tarafından Barry Warsaw's avatar Barry Warsaw

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

zero arguments (found by Marc Lemburg).
üst cd975761
......@@ -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;
......
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