mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Kill reduce(). A coproduction of John Reese, Jacques Frechet, and Alex M.
This commit is contained in:
parent
6cefeb0e81
commit
89da5d7c3d
10 changed files with 25 additions and 144 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue