summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2007-08-23 05:25:55 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2007-08-23 05:25:55 (GMT)
commite07127793958bc355dd34b79c08397c698c298d7 (patch)
tree72c12623b301055c9b2c0593c19fd326933c11d4 /Lib/idlelib/EditorWindow.py
parent460add45008adff34b3b6a75805b8acf87a6192b (diff)
downloadcpython-e07127793958bc355dd34b79c08397c698c298d7.zip
cpython-e07127793958bc355dd34b79c08397c698c298d7.tar.gz
cpython-e07127793958bc355dd34b79c08397c698c298d7.tar.bz2
Conform to py3k dict.{keys, items, values} with some advice from 2b3
M idlelib/configHandler.py M idlelib/ColorDelegator.py M idlelib/Delegator.py M idlelib/ObjectBrowser.py M idlelib/PyShell.py M idlelib/Debugger.py M idlelib/configDialog.py M idlelib/StackViewer.py M idlelib/keybindingDialog.py M idlelib/tabpage.py M idlelib/EditorWindow.py M idlelib/WindowList.py M idlelib/RemoteDebugger.py M idlelib/dynOptionMenuWidget.py
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index e051348..7161069 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -654,7 +654,7 @@ class EditorWindow(object):
for item in menu[1]:
if item:
menuEventDict[menu[0]][prepstr(item[0])[1]] = item[1]
- for menubarItem in self.menudict.keys():
+ for menubarItem in self.menudict:
menu = self.menudict[menubarItem]
end = menu.index(END) + 1
for index in range(0, end):
@@ -733,7 +733,7 @@ class EditorWindow(object):
finally:
rf_file.close()
# for each edit window instance, construct the recent files menu
- for instance in self.top.instance_dict.keys():
+ for instance in self.top.instance_dict:
menu = instance.recent_files_menu
menu.delete(1, END) # clear, and rebuild:
for i, file in zip(count(), rf_list):
@@ -863,7 +863,7 @@ class EditorWindow(object):
self.load_standard_extensions()
def unload_extensions(self):
- for ins in self.extensions.values():
+ for ins in list(self.extensions.values()):
if hasattr(ins, "close"):
ins.close()
self.extensions = {}
@@ -893,7 +893,7 @@ class EditorWindow(object):
self.extensions[name] = ins
if keydefs:
self.apply_bindings(keydefs)
- for vevent in keydefs.keys():
+ for vevent in keydefs:
methodname = vevent.replace("-", "_")
while methodname[:1] == '<':
methodname = methodname[1:]