changeset: 105045:137c7b92360e branch: 2.7 parent: 105009:41613bb27f80 user: Terry Jan Reedy date: Thu Nov 10 18:42:58 2016 -0500 files: Lib/idlelib/IOBinding.py description: Issue #25507: Add back import needed for 2.x encoding warning box. Add pointer to 'Encoding declaration' in Language Reference. diff -r 41613bb27f80 -r 137c7b92360e Lib/idlelib/IOBinding.py --- a/Lib/idlelib/IOBinding.py Wed Nov 09 09:41:15 2016 -0500 +++ b/Lib/idlelib/IOBinding.py Thu Nov 10 18:42:58 2016 -0500 @@ -13,6 +13,7 @@ import sys import tempfile +from Tkinter import * import tkFileDialog import tkMessageBox from SimpleDialog import SimpleDialog @@ -91,6 +92,7 @@ # l2['state'] = DISABLED l2.pack(side=TOP, anchor = W, fill=X) l3 = Label(top, text="to your file\n" + "See Language Reference, 2.1.4 Encoding declarations.\n" "Choose OK to save this file as %s\n" "Edit your general options to silence this warning" % enc) l3.pack(side=TOP, anchor = W)