projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd97576
)
do_strip(): Fixed cut-and-paste error; this function should check for
author
Barry Warsaw
<barry@python.org>
Wed, 15 Dec 1999 02:22:52 +0000
(
02:22
+0000)
committer
Barry Warsaw
<barry@python.org>
Wed, 15 Dec 1999 02:22:52 +0000
(
02:22
+0000)
zero arguments (found by Marc Lemburg).
Objects/stringobject.c
patch
|
blob
|
history
diff --git
a/Objects/stringobject.c
b/Objects/stringobject.c
index 264ed9ac31d1544b624f243bb3e1b738988b37f1..dc47f9e24d4973478a3aed003491ce4d8958e7f8 100644
(file)
--- 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;