summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/WidgetRedirector.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/WidgetRedirector.py')
-rw-r--r--Lib/idlelib/WidgetRedirector.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/WidgetRedirector.py b/Lib/idlelib/WidgetRedirector.py
index 103bfd0..2cb9398 100644
--- a/Lib/idlelib/WidgetRedirector.py
+++ b/Lib/idlelib/WidgetRedirector.py
@@ -1,3 +1,4 @@
+from __future__ import print_function
from Tkinter import TclError
class WidgetRedirector:
@@ -161,7 +162,7 @@ def _widget_redirector(parent): # htest #
text.focus_set()
redir = WidgetRedirector(text)
def my_insert(*args):
- print "insert", args
+ print("insert", args)
original_insert(*args)
original_insert = redir.register("insert", my_insert)
root.mainloop()