diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-02 20:26:41 (GMT) |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-02 20:26:41 (GMT) |
| commit | b55d36805566c092c11b8e38792c759742cd6a1f (patch) | |
| tree | fbe9279c4c088fd4c9a0ee557ff76494ffe584f7 /Lib/idlelib/AutoCompleteWindow.py | |
| parent | 507ea2ae1802a97fe3cd88051413219d70cb71e1 (diff) | |
| download | cpython-b55d36805566c092c11b8e38792c759742cd6a1f.zip cpython-b55d36805566c092c11b8e38792c759742cd6a1f.tar.gz cpython-b55d36805566c092c11b8e38792c759742cd6a1f.tar.bz2 | |
Merged revisions 79558 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79558 | florent.xicluna | 2010-04-01 21:17:09 +0300 (Thu, 01 Apr 2010) | 2 lines
#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 |
