summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorGuilherme Polo <ggpolo@gmail.com>2009-03-07 01:19:12 (GMT)
committerGuilherme Polo <ggpolo@gmail.com>2009-03-07 01:19:12 (GMT)
commit6d6c1fd04e2d7c8edd945c826b69da41e592db4c (patch)
tree282c0567540b3a2778a69090ed3c823705b9c33c /Lib/lib-tk
parent943b24e7e46404df99b4b6d925b64479cc0e15c2 (diff)
downloadcpython-6d6c1fd04e2d7c8edd945c826b69da41e592db4c.zip
cpython-6d6c1fd04e2d7c8edd945c826b69da41e592db4c.tar.gz
cpython-6d6c1fd04e2d7c8edd945c826b69da41e592db4c.tar.bz2
Fixed issue #5193: Guarantee that Tkinter.Text.search returns a string.
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 53249e7..3cce276 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -3046,7 +3046,7 @@ class Text(Widget):
args.append(pattern)
args.append(index)
if stopindex: args.append(stopindex)
- return self.tk.call(tuple(args))
+ return str(self.tk.call(tuple(args)))
def see(self, index):
"""Scroll such that the character at INDEX is visible."""
self.tk.call(self._w, 'see', index)