From 5c32f671f60c1927951161432b4ee3b4fa68e212 Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Mon, 27 Apr 2009 05:36:55 +0000 Subject: Use of 'filter' in keybindingDialog.py was causing custom key assignment to fail. Patch 5707 amaury.forgeotdarc. --- Lib/idlelib/NEWS.txt | 3 +++ Lib/idlelib/keybindingDialog.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index c111232..2918fe5 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -3,6 +3,9 @@ What's New in IDLE 3.1b1? *Release date: XX-XXX-09* +- Use of 'filter' in keybindingDialog.py was causing custom key assignment to + fail. Patch 5707 amaury.forgeotdarc. + What's New in IDLE 3.1a1? ========================= 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) -- cgit v0.12