mirror of
https://github.com/python/cpython.git
synced 2025-09-13 12:17:24 +00:00
Remove dead code (reported by HP compiler).
Can probably be backported if anyone cares.
This commit is contained in:
parent
ffb0d90a6e
commit
7e957d38b7
1 changed files with 5 additions and 8 deletions
|
@ -1952,17 +1952,14 @@ do_argstrip(PyStringObject *self, int striptype, PyObject *args)
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else {
|
PyErr_Format(PyExc_TypeError,
|
||||||
PyErr_Format(PyExc_TypeError,
|
|
||||||
#ifdef Py_USING_UNICODE
|
#ifdef Py_USING_UNICODE
|
||||||
"%s arg must be None, str or unicode",
|
"%s arg must be None, str or unicode",
|
||||||
#else
|
#else
|
||||||
"%s arg must be None or str",
|
"%s arg must be None or str",
|
||||||
#endif
|
#endif
|
||||||
STRIPNAME(striptype));
|
STRIPNAME(striptype));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
return do_xstrip(self, striptype, sep);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return do_strip(self, striptype);
|
return do_strip(self, striptype);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue