Kaydet (Commit) 9efd9b6f authored tarafından Georg Brandl's avatar Georg Brandl

Bug #1763149: use proper slice syntax in docstring.

 (backport)
üst ec62423b
...@@ -1891,7 +1891,7 @@ PyDoc_STRVAR(find__doc__, ...@@ -1891,7 +1891,7 @@ PyDoc_STRVAR(find__doc__,
"S.find(sub [,start [,end]]) -> int\n\ "S.find(sub [,start [,end]]) -> int\n\
\n\ \n\
Return the lowest index in S where substring sub is found,\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\ arguments start and end are interpreted as in slice notation.\n\
\n\ \n\
Return -1 on failure."); Return -1 on failure.");
...@@ -1930,7 +1930,7 @@ PyDoc_STRVAR(rfind__doc__, ...@@ -1930,7 +1930,7 @@ PyDoc_STRVAR(rfind__doc__,
"S.rfind(sub [,start [,end]]) -> int\n\ "S.rfind(sub [,start [,end]]) -> int\n\
\n\ \n\
Return the highest index in S where substring sub is found,\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\ arguments start and end are interpreted as in slice notation.\n\
\n\ \n\
Return -1 on failure."); Return -1 on failure.");
......
...@@ -5760,7 +5760,7 @@ PyDoc_STRVAR(find__doc__, ...@@ -5760,7 +5760,7 @@ PyDoc_STRVAR(find__doc__,
"S.find(sub [,start [,end]]) -> int\n\ "S.find(sub [,start [,end]]) -> int\n\
\n\ \n\
Return the lowest index in S where substring sub is found,\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\ arguments start and end are interpreted as in slice notation.\n\
\n\ \n\
Return -1 on failure."); Return -1 on failure.");
...@@ -6501,7 +6501,7 @@ PyDoc_STRVAR(rfind__doc__, ...@@ -6501,7 +6501,7 @@ PyDoc_STRVAR(rfind__doc__,
"S.rfind(sub [,start [,end]]) -> int\n\ "S.rfind(sub [,start [,end]]) -> int\n\
\n\ \n\
Return the highest index in S where substring sub is found,\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\ arguments start and end are interpreted as in slice notation.\n\
\n\ \n\
Return -1 on failure."); Return -1 on failure.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment