summaryrefslogtreecommitdiff
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-12-13 15:04:58 +0000
committerMartin v. Löwis <martin@v.loewis.de>2008-12-13 15:04:58 +0000
commit9336705f7a286efb2db84120d4a8c84b175c5459 (patch)
tree9762bdf897f4c29b74af23b31c6c38980917260d /Lib/lib-tk
parent49ecae52127524e2c129425ed6813f5ad8c7d11f (diff)
downloadcpython-9336705f7a286efb2db84120d4a8c84b175c5459.tar.gz
Backport of r59654.
Issue #4342: Always convert Text.index result to 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 de2873fc3c..31a2fc36d2 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -3005,7 +3005,7 @@ class Text(Widget):
return self.tk.call(self._w, "image", "names")
def index(self, index):
"""Return the index in the form line.char for INDEX."""
- return self.tk.call(self._w, 'index', index)
+ return str(self.tk.call(self._w, 'index', index))
def insert(self, index, chars, *args):
"""Insert CHARS before the characters at INDEX. An additional
tag can be given in ARGS. Additional CHARS and tags can follow in ARGS."""