mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Remove has_key() references from idlelib. IDLE still doesn't run due
to relative import issues. Any volunteers?
This commit is contained in:
parent
d204a715f4
commit
811c4e0b7c
11 changed files with 20 additions and 20 deletions
|
@ -648,8 +648,8 @@ class EditorWindow(object):
|
|||
if accel:
|
||||
itemName = menu.entrycget(index, 'label')
|
||||
event = ''
|
||||
if menuEventDict.has_key(menubarItem):
|
||||
if menuEventDict[menubarItem].has_key(itemName):
|
||||
if menubarItem in menuEventDict:
|
||||
if itemName in menuEventDict[menubarItem]:
|
||||
event = menuEventDict[menubarItem][itemName]
|
||||
if event:
|
||||
accel = get_accelerator(keydefs, event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue