diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-04-01 18:17:09 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-04-01 18:17:09 (GMT) |
commit | 8d1da0f5c3b8c6e3fa29e6ae7f891f699a041bb6 (patch) | |
tree | 358d9d15191ea717dcd05117302d090296a4e9c1 /Lib/idlelib/AutoCompleteWindow.py | |
parent | b5023df3d6d46c7a220eb1db0c2db8cbe8a881fc (diff) | |
download | cpython-8d1da0f5c3b8c6e3fa29e6ae7f891f699a041bb6.zip cpython-8d1da0f5c3b8c6e3fa29e6ae7f891f699a041bb6.tar.gz cpython-8d1da0f5c3b8c6e3fa29e6ae7f891f699a041bb6.tar.bz2 |
#7092: Fix some -3 warnings, and fix Lib/platform.py when the path contains a double-quote.
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 635775d..81eeec1 100644 --- a/Lib/idlelib/AutoCompleteWindow.py +++ b/Lib/idlelib/AutoCompleteWindow.py @@ -349,10 +349,8 @@ class AutoCompleteWindow: 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 |