summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1999-12-15 02:22:52 (GMT)
committerBarry Warsaw <barry@python.org>1999-12-15 02:22:52 (GMT)
commit153a27ceb2b53056d3bd4b0b3e8058d94acdadae (patch)
treef1c031de1744b97a99c22058ee28ec17738c23e1
parentcd975761846dd17718f4c55afdbc288b0d9cc534 (diff)
downloadcpython-153a27ceb2b53056d3bd4b0b3e8058d94acdadae.zip
cpython-153a27ceb2b53056d3bd4b0b3e8058d94acdadae.tar.gz
cpython-153a27ceb2b53056d3bd4b0b3e8058d94acdadae.tar.bz2
do_strip(): Fixed cut-and-paste error; this function should check for
zero arguments (found by Marc Lemburg).
-rw-r--r--Objects/stringobject.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 264ed9a..dc47f9e 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -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;