mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00: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
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue