summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2012-06-14 13:37:53 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2012-06-14 13:37:53 (GMT)
commit474eb23b7fb0f66315eb975a712433ee8c247e68 (patch)
tree2170d875442fc8434bc08ed78ef2577316d5ac06
parentc142bba2a7ead80b99aef44b3dca06e2a4be4923 (diff)
parent993fe3f0357b3539f770c64ae249809981069345 (diff)
downloadcpython-474eb23b7fb0f66315eb975a712433ee8c247e68.zip
cpython-474eb23b7fb0f66315eb975a712433ee8c247e68.tar.gz
cpython-474eb23b7fb0f66315eb975a712433ee8c247e68.tar.bz2
merge 3.2
-rw-r--r--Lib/idlelib/AutoComplete.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/AutoComplete.py b/Lib/idlelib/AutoComplete.py
index b38b108..929d358 100644
--- a/Lib/idlelib/AutoComplete.py
+++ b/Lib/idlelib/AutoComplete.py
@@ -140,7 +140,7 @@ class AutoComplete:
elif hp.is_in_code() and (not mode or mode==COMPLETE_ATTRIBUTES):
self._remove_autocomplete_window()
mode = COMPLETE_ATTRIBUTES
- while i and curline[i-1] in ID_CHARS or ord(curline[i-1]) > 127:
+ while i and (curline[i-1] in ID_CHARS or ord(curline[i-1]) > 127):
i -= 1
comp_start = curline[i:j]
if i and curline[i-1] == '.':