diff options
| author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-11-10 23:42:58 (GMT) |
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-11-10 23:42:58 (GMT) |
| commit | a33deb2d07b3a2bf0a6592c407f3f72122f9fa75 (patch) | |
| tree | c09570b059f4bc82921b2b332bd7c572e8b9beb4 /Lib/idlelib/IOBinding.py | |
| parent | 48aa605337a820b476e18896564a5ef877c5b27d (diff) | |
| download | cpython-a33deb2d07b3a2bf0a6592c407f3f72122f9fa75.zip cpython-a33deb2d07b3a2bf0a6592c407f3f72122f9fa75.tar.gz cpython-a33deb2d07b3a2bf0a6592c407f3f72122f9fa75.tar.bz2 | |
Issue #25507: Add back import needed for 2.x encoding warning box.
Add pointer to 'Encoding declaration' in Language Reference.
Diffstat (limited to 'Lib/idlelib/IOBinding.py')
| -rw-r--r-- | Lib/idlelib/IOBinding.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index 1233d80..2aba46e 100644 --- a/Lib/idlelib/IOBinding.py +++ b/Lib/idlelib/IOBinding.py @@ -13,6 +13,7 @@ import re import sys import tempfile +from Tkinter import * import tkFileDialog import tkMessageBox from SimpleDialog import SimpleDialog @@ -91,6 +92,7 @@ class EncodingMessage(SimpleDialog): # 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) |
