diff Objects/stringobject.c @ 37516:7cd3bf2399e6 legacy-trunk

Remove dead code (reported by HP compiler). Can probably be backported if anyone cares.
author Neal Norwitz <nnorwitz@gmail.com>
date Thu, 06 Apr 2006 08:17:41 +0000
parents 79a0f080f898
children 1b078493d538
line wrap: on
line diff
--- a/Objects/stringobject.c	Thu Apr 06 08:07:25 2006 +0000
+++ b/Objects/stringobject.c	Thu Apr 06 08:17:41 2006 +0000
@@ -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);