[Python-checkins] r43695 - python/trunk/Objects/stringobject.c
neal.norwitz
python-checkins at python.org
Thu Apr 6 10:17:41 CEST 2006
Author: neal.norwitz
Date: Thu Apr 6 10:17:41 2006
New Revision: 43695
Modified:
python/trunk/Objects/stringobject.c
Log:
Remove dead code (reported by HP compiler).
Can probably be backported if anyone cares.
Modified: python/trunk/Objects/stringobject.c
==============================================================================
--- python/trunk/Objects/stringobject.c (original)
+++ python/trunk/Objects/stringobject.c Thu Apr 6 10:17:41 2006
@@ -1952,17 +1952,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);
More information about the Python-checkins
mailing list