summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/keybindingDialog.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2009-04-27 05:36:55 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2009-04-27 05:36:55 (GMT)
commit5c32f671f60c1927951161432b4ee3b4fa68e212 (patch)
tree09a32d87a7b3b09b3bb32e02319c67e831b5c50a /Lib/idlelib/keybindingDialog.py
parent7195963aa2b25030ef4662e6879ad27517e63fcc (diff)
downloadcpython-5c32f671f60c1927951161432b4ee3b4fa68e212.zip
cpython-5c32f671f60c1927951161432b4ee3b4fa68e212.tar.gz
cpython-5c32f671f60c1927951161432b4ee3b4fa68e212.tar.bz2
Use of 'filter' in keybindingDialog.py was causing
custom key assignment to fail. Patch 5707 amaury.forgeotdarc.
Diffstat (limited to 'Lib/idlelib/keybindingDialog.py')
-rw-r--r--Lib/idlelib/keybindingDialog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/keybindingDialog.py b/Lib/idlelib/keybindingDialog.py
index b99c5e0..0f0da8c 100644
--- a/Lib/idlelib/keybindingDialog.py
+++ b/Lib/idlelib/keybindingDialog.py
@@ -168,7 +168,7 @@ class GetKeysDialog(Toplevel):
def GetModifiers(self):
modList = [variable.get() for variable in self.modifier_vars]
- return filter(None, modList)
+ return [mod for mod in modList if mod]
def ClearKeySeq(self):
self.listKeysFinal.select_clear(0,END)