Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 40039:2a05ee4a23e0 2.4
[Backport r43695 | neal.norwitz]
Remove dead code (reported by HP compiler).
Can probably be backported if anyone cares.
| author | Andrew M. Kuchling <amk@amk.ca> |
|---|---|
| date | Fri, 06 Oct 2006 19:26:14 +0000 |
| parents | f6bbe8d6fa33 |
| children | 187388c11505 |
line wrap: on
line diff
--- a/Objects/stringobject.c Fri Oct 06 19:09:36 2006 +0000 +++ b/Objects/stringobject.c Fri Oct 06 19:26:14 2006 +0000 @@ -1926,17 +1926,14 @@ return res; } #endif - else { - PyErr_Format(PyExc_TypeError, + PyErr_Format(PyExc_TypeError, #ifdef Py_USING_UNICODE - "%s arg must be None, str or unicode", + "%s arg must be None, str or unicode", #else - "%s arg must be None or str", + "%s arg must be None or str", #endif - STRIPNAME(striptype)); - return NULL; - } - return do_xstrip(self, striptype, sep); + STRIPNAME(striptype)); + return NULL; } return do_strip(self, striptype);
