]> granicus.if.org Git - python/commitdiff
#2999: fix name of third parameter in unicode.replace()'s docstring.
authorGeorg Brandl <georg@python.org>
Fri, 30 May 2008 07:54:16 +0000 (07:54 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 30 May 2008 07:54:16 +0000 (07:54 +0000)
Objects/unicodeobject.c

index 7af560c8bc38c7c0c952b43fd879877c7503dec5..81b6a66189fd4eec581ef0394d55b6aaf07b150b 100644 (file)
@@ -7318,11 +7318,11 @@ PyObject *PyUnicode_Replace(PyObject *obj,
 }
 
 PyDoc_STRVAR(replace__doc__,
-"S.replace (old, new[, maxsplit]) -> unicode\n\
+"S.replace (old, new[, count]) -> unicode\n\
 \n\
 Return a copy of S with all occurrences of substring\n\
-old replaced by new.  If the optional argument maxsplit is\n\
-given, only the first maxsplit occurrences are replaced.");
+old replaced by new.  If the optional argument count is\n\
+given, only the first count occurrences are replaced.");
 
 static PyObject*
 unicode_replace(PyUnicodeObject *self, PyObject *args)