mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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
This commit is contained in:
parent
460add4500
commit
e071277939
14 changed files with 50 additions and 51 deletions
|
@ -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:]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue