From: Kurt B. Kaiser Date: Mon, 27 Apr 2009 05:36:55 +0000 (+0000) Subject: Use of 'filter' in keybindingDialog.py was causing X-Git-Tag: v3.1b1~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c32f671f60c1927951161432b4ee3b4fa68e212;p=thirdparty%2FPython%2Fcpython.git Use of 'filter' in keybindingDialog.py was causing custom key assignment to fail. Patch 5707 amaury.forgeotdarc. --- diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index c111232c8424..2918fe5e3000 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 b99c5e0d8c0b..0f0da8c7e930 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)