]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix closes Issue12621 - Fix docstrings of find and rfind methods of bytes/bytearry...
authorSenthil Kumaran <senthil@uthcode.com>
Wed, 27 Jul 2011 15:33:54 +0000 (23:33 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Wed, 27 Jul 2011 15:33:54 +0000 (23:33 +0800)
Objects/bytearrayobject.c
Objects/bytesobject.c
Objects/unicodeobject.c

index 7a7410405ec830d75ed7e20bcce0fe34fb8b6935..0b45394a4af604ef560407d344bcce2fce408a1a 100644 (file)
@@ -1102,7 +1102,7 @@ PyDoc_STRVAR(find__doc__,
 "B.find(sub[, start[, end]]) -> int\n\
 \n\
 Return the lowest index in B where subsection sub is found,\n\
-such that sub is contained within s[start,end].  Optional\n\
+such that sub is contained within B[start,end].  Optional\n\
 arguments start and end are interpreted as in slice notation.\n\
 \n\
 Return -1 on failure.");
@@ -1172,7 +1172,7 @@ PyDoc_STRVAR(rfind__doc__,
 "B.rfind(sub[, start[, end]]) -> int\n\
 \n\
 Return the highest index in B where subsection sub is found,\n\
-such that sub is contained within s[start,end].  Optional\n\
+such that sub is contained within B[start,end].  Optional\n\
 arguments start and end are interpreted as in slice notation.\n\
 \n\
 Return -1 on failure.");
index 38458ef9a6e3832f35d197588c254adca5f3aa93..8e35fa927697c505835eea221718de3d41457ea2 100644 (file)
@@ -1273,7 +1273,7 @@ PyDoc_STRVAR(find__doc__,
 "B.find(sub[, start[, end]]) -> int\n\
 \n\
 Return the lowest index in B where substring sub is found,\n\
-such that sub is contained within s[start:end].  Optional\n\
+such that sub is contained within B[start:end].  Optional\n\
 arguments start and end are interpreted as in slice notation.\n\
 \n\
 Return -1 on failure.");
@@ -1312,7 +1312,7 @@ PyDoc_STRVAR(rfind__doc__,
 "B.rfind(sub[, start[, end]]) -> int\n\
 \n\
 Return the highest index in B where substring sub is found,\n\
-such that sub is contained within s[start:end].  Optional\n\
+such that sub is contained within B[start:end].  Optional\n\
 arguments start and end are interpreted as in slice notation.\n\
 \n\
 Return -1 on failure.");
index 03807a45b9d1d03622489a51cd00a72eea2e6ac1..75da0e7e8d28da40a5503205d250cae10b0a5ea5 100644 (file)
@@ -7587,7 +7587,7 @@ PyDoc_STRVAR(find__doc__,
              "S.find(sub[, start[, end]]) -> int\n\
 \n\
 Return the lowest index in S where substring sub is found,\n\
-such that sub is contained within s[start:end].  Optional\n\
+such that sub is contained within S[start:end].  Optional\n\
 arguments start and end are interpreted as in slice notation.\n\
 \n\
 Return -1 on failure.");
@@ -8513,7 +8513,7 @@ PyDoc_STRVAR(rfind__doc__,
              "S.rfind(sub[, start[, end]]) -> int\n\
 \n\
 Return the highest index in S where substring sub is found,\n\
-such that sub is contained within s[start:end].  Optional\n\
+such that sub is contained within S[start:end].  Optional\n\
 arguments start and end are interpreted as in slice notation.\n\
 \n\
 Return -1 on failure.");