summaryrefslogtreecommitdiff
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-10-09 22:15:50 +0000
committerBenjamin Peterson <benjamin@python.org>2009-10-09 22:15:50 +0000
commit6e3dbbdf39f3b4eb6f18c0165e446df17218b7dc (patch)
tree09bb1d277d25af8ed32f042ff8fce5549105bc76 /Lib/idlelib/EditorWindow.py
parentde0559998fef231efc9ecbdef5b3a195d4eaa28d (diff)
downloadcpython-git-6e3dbbdf39f3b4eb6f18c0165e446df17218b7dc.tar.gz
replace has_key with 'in' operator
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 5f6a8853b9..d659cff528 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -705,8 +705,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)