From: Guilherme Polo Date: Sat, 7 Mar 2009 01:19:12 +0000 (+0000) Subject: Fixed issue #5193: Guarantee that Tkinter.Text.search returns a string. X-Git-Tag: v2.7a1~1889 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d6c1fd04e2d7c8edd945c826b69da41e592db4c;p=python Fixed issue #5193: Guarantee that Tkinter.Text.search returns a string. --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 53249e7078..3cce276e0a 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) diff --git a/Misc/NEWS b/Misc/NEWS index 13ace63d80..0e88f1deda 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -168,6 +168,8 @@ Core and Builtins Library ------- +- Issue #5193: Guarantee that Tkinter.Text.search returns a string. + - Issue #5394: removed > 2.3 syntax from distutils.msvc9compiler. Original patch by Akira Kitada.