From: Senthil Kumaran Date: Wed, 8 Sep 2010 13:00:07 +0000 (+0000) Subject: Merged revisions 84629 via svnmerge from X-Git-Tag: v3.1.3rc1~261 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f77342076e3ce1a342c1e8ab8b336095c0b026ef;p=python Merged revisions 84629 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84629 | senthil.kumaran | 2010-09-08 18:20:29 +0530 (Wed, 08 Sep 2010) | 3 lines 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 e580884edc..85267a7e30 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -2557,8 +2557,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)