Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/AutoCompleteWindow.py @ 60132:a404e3702f79 legacy-trunk
#7092: Fix some -3 warnings, and fix Lib/platform.py when the path contains a double-quote.
| author | Florent Xicluna <florent.xicluna@gmail.com> |
|---|---|
| date | Thu, 01 Apr 2010 18:17:09 +0000 |
| parents | b53604fad54b |
| children | eab361617f6a |
line wrap: on
line diff
--- a/Lib/idlelib/AutoCompleteWindow.py Thu Apr 01 17:56:57 2010 +0000 +++ b/Lib/idlelib/AutoCompleteWindow.py Thu Apr 01 18:17:09 2010 +0000 @@ -349,10 +349,8 @@ self.lastkey_was_tab = 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
