Skip to content

Commit 430773c

Browse files
authored
Use self.tk._splitlist
1 parent 026ded8 commit 430773c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Lib/tkinter/__init__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4083,12 +4083,7 @@ def search_all(self, pattern, index, stopindex=None,
40834083
args.append(index)
40844084
if stopindex: args.append(stopindex)
40854085
result = self.tk.call(tuple(args))
4086-
if isinstance(result, tuple):
4087-
return [str(i) for i in result]
4088-
elif isinstance(result, str):
4089-
return result.split()
4090-
else:
4091-
return []
4086+
return self._tk.splitlist(result)
40924087

40934088
def see(self, index):
40944089
"""Scroll such that the character at INDEX is visible."""

0 commit comments

Comments
 (0)