diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-07-19 22:32:06 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-07-19 22:32:06 (GMT) |
commit | 58785d545082d800a6388f8d80423acce970df40 (patch) | |
tree | b2b0385a6f1119a18e3cd72cbf7218ff3d33d722 /Lib/idlelib | |
parent | 46d4ed195dd868c812f423147995c4e9c92f949f (diff) | |
download | cpython-58785d545082d800a6388f8d80423acce970df40.zip cpython-58785d545082d800a6388f8d80423acce970df40.tar.gz cpython-58785d545082d800a6388f8d80423acce970df40.tar.bz2 |
Issue #24671: Finish print conversion, idlelib GrepDialog and WidgetRedirector.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/GrepDialog.py | 1 | ||||
-rw-r--r-- | Lib/idlelib/WidgetRedirector.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/idlelib/GrepDialog.py b/Lib/idlelib/GrepDialog.py index b038c9c..d86d50d 100644 --- a/Lib/idlelib/GrepDialog.py +++ b/Lib/idlelib/GrepDialog.py @@ -1,3 +1,4 @@ +from __future__ import print_function import os import fnmatch import re # for htest 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() |