]> granicus.if.org Git - python/commitdiff
Fixed issue #5193: Guarantee that Tkinter.Text.search returns a string.
authorGuilherme Polo <ggpolo@gmail.com>
Sat, 7 Mar 2009 01:19:12 +0000 (01:19 +0000)
committerGuilherme Polo <ggpolo@gmail.com>
Sat, 7 Mar 2009 01:19:12 +0000 (01:19 +0000)
Lib/lib-tk/Tkinter.py
Misc/NEWS

index 53249e7078f4d82447f96c84cec3f96962c61594..3cce276e0aaa044ee345b41689778f640deadb33 100644 (file)
@@ -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)
index 13ace63d80162952420f864bf192ad6ce50d07b1..0e88f1deda2f8116dc9def8c3354d6da75d062ee 100644 (file)
--- 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.