From: Senthil Kumaran Date: Wed, 8 Sep 2010 12:50:29 +0000 (+0000) Subject: Revert the doc change done in r83880. str.replace with negative count value is not... X-Git-Tag: v3.2a3~377 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a9dd1c14069701f25983af56c55a7ec6afd83c8;p=thirdparty%2FPython%2Fcpython.git Revert the doc change done in r83880. str.replace with negative count value is not a feature. --- diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index 77f193cf45f8..fc644f24c065 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -2131,8 +2131,7 @@ PyDoc_STRVAR(replace__doc__, \n\ Return a copy of B with all occurrences of subsection\n\ old replaced by new. If the optional argument count is\n\ -positive, only the first count occurrences are replaced. A\n\ -negative value of count replaces all occurrences"); +given, only first count occurances are replaced."); static PyObject * bytes_replace(PyBytesObject *self, PyObject *args)