From 9a9dd1c14069701f25983af56c55a7ec6afd83c8 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Wed, 8 Sep 2010 12:50:29 +0000 Subject: [PATCH] Revert the doc change done in r83880. str.replace with negative count value is not a feature. --- Objects/bytesobject.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index 77f193cf45f..fc644f24c06 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)