diff options
| author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-05-14 22:10:30 (GMT) |
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-05-14 22:10:30 (GMT) |
| commit | d8dc7496c5fb1590654e29260cb09f43d6497a6a (patch) | |
| tree | 355796001c1646e86c432d54f479693dcb0b0cb7 /Lib/idlelib/IOBinding.py | |
| parent | c711b61ad4ac3f125129dce2a4482f0649c07c84 (diff) | |
| download | cpython-d8dc7496c5fb1590654e29260cb09f43d6497a6a.zip cpython-d8dc7496c5fb1590654e29260cb09f43d6497a6a.tar.gz cpython-d8dc7496c5fb1590654e29260cb09f43d6497a6a.tar.bz2 | |
idlelib: remove unused names and imports (one is a duplicate import).
Diffstat (limited to 'Lib/idlelib/IOBinding.py')
| -rw-r--r-- | Lib/idlelib/IOBinding.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index e7d747c..db6773f 100644 --- a/Lib/idlelib/IOBinding.py +++ b/Lib/idlelib/IOBinding.py @@ -6,7 +6,6 @@ # which will only understand the local convention. import os -import types import pipes import sys import codecs @@ -391,7 +390,7 @@ class IOBinding: return False def encode(self, chars): - if isinstance(chars, types.StringType): + if isinstance(chars, str): # This is either plain ASCII, or Tk was returning mixed-encoding # text to us. Don't try to guess further. return chars @@ -568,7 +567,7 @@ class IOBinding: "Update recent file list on all editor windows" self.editwin.update_recent_files_list(filename) -def _io_binding(parent): +def _io_binding(parent): # htest # root = Tk() root.title("Test IOBinding") width, height, x, y = list(map(int, re.split('[x+]', parent.geometry()))) @@ -591,7 +590,7 @@ def _io_binding(parent): text.pack() text.focus_set() editwin = MyEditWin(text) - io = IOBinding(editwin) + IOBinding(editwin) if __name__ == "__main__": from idlelib.idle_test.htest import run |
