mirror of
https://github.com/python/cpython.git
synced 2024-12-05 07:43:50 +08:00
do_strip(): Fixed cut-and-paste error; this function should check for
zero arguments (found by Marc Lemburg).
This commit is contained in:
parent
cd97576184
commit
153a27ceb2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user