diff options
| author | Guido van Rossum <guido@python.org> | 2006-08-22 00:21:25 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2006-08-22 00:21:25 +0000 |
| commit | 89da5d7c3d9cf5bfd4a374e23fd924bbffdeaf5c (patch) | |
| tree | aef767c70a3b57c4128d44816e4e070d28fffb9d /Lib/idlelib/AutoCompleteWindow.py | |
| parent | 6cefeb0e8156406ac3f99248f6a3d3cd1536ca23 (diff) | |
| download | cpython-git-89da5d7c3d9cf5bfd4a374e23fd924bbffdeaf5c.tar.gz | |
Kill reduce(). A coproduction of John Reese, Jacques Frechet, and Alex M.
Diffstat (limited to 'Lib/idlelib/AutoCompleteWindow.py')
| -rw-r--r-- | Lib/idlelib/AutoCompleteWindow.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/idlelib/AutoCompleteWindow.py b/Lib/idlelib/AutoCompleteWindow.py index d8bbff4a17..8bed0344e9 100644 --- a/Lib/idlelib/AutoCompleteWindow.py +++ b/Lib/idlelib/AutoCompleteWindow.py @@ -335,10 +335,8 @@ class AutoCompleteWindow: self.userwantswindow = True return - elif reduce(lambda x, y: x or y, - [keysym.find(s) != -1 for s in ("Shift", "Control", "Alt", - "Meta", "Command", "Option") - ]): + elif any(s in keysym for s in ("Shift", "Control", "Alt", + "Meta", "Command", "Option")): # A modifier key, so ignore return |
