#7092: Fix some -3 warnings, and fix Lib/platform.py when the path contains a double-quote.

This commit is contained in:
Florent Xicluna 2010-04-01 18:17:09 +00:00
parent b5023df3d6
commit 8d1da0f5c3
6 changed files with 22 additions and 21 deletions

View file

@ -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