Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 11572:6adc3c5fa185 legacy-trunk
do_strip(): Fixed cut-and-paste error; this function should check for
zero arguments (found by Marc Lemburg).
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Wed, 15 Dec 1999 02:22:52 +0000 |
| parents | aca7b5eaf5e8 |
| children | 5e6e9e893acd |
line wrap: on
line diff
--- a/Objects/stringobject.c Tue Dec 14 22:18:37 1999 +0000 +++ b/Objects/stringobject.c Wed Dec 15 02:22:52 1999 +0000 @@ -925,10 +925,8 @@ { 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;
