Skip to content

Commit 71d2a60

Browse files
authored
Revert docstring and make search_all keyword only
1 parent 2f5ad84 commit 71d2a60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/tkinter/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4043,7 +4043,8 @@ def search(self, pattern, index, stopindex=None,
40434043
regexp=None, nocase=None, count=None,
40444044
elide=None, nolinestop=None, strictlimits=None):
40454045
"""Search PATTERN beginning from INDEX until STOPINDEX.
4046-
Return the index of the first character of a match or an empty string."""
4046+
Return the index of the first character of a match or an
4047+
empty string."""
40474048
args = [self._w, 'search']
40484049
if forwards: args.append('-forwards')
40494050
if backwards: args.append('-backwards')
@@ -4060,7 +4061,7 @@ def search(self, pattern, index, stopindex=None,
40604061
if stopindex: args.append(stopindex)
40614062
return str(self.tk.call(tuple(args)))
40624063

4063-
def search_all(self, pattern, index, stopindex=None,
4064+
def search_all(self, pattern, index, stopindex=None, *,
40644065
forwards=None, backwards=None, exact=None,
40654066
regexp=None, nocase=None, count=None,
40664067
elide=None, nolinestop=None, overlap=None,

0 commit comments

Comments
 (0)