summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2012-06-14 13:37:21 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2012-06-14 13:37:21 (GMT)
commit993fe3f0357b3539f770c64ae249809981069345 (patch)
tree34ace5c63e54f523d15ad26b28f10c157390abaa
parent27b130e7026843de85954c4c976ec96c0e226987 (diff)
downloadcpython-993fe3f0357b3539f770c64ae249809981069345.zip
cpython-993fe3f0357b3539f770c64ae249809981069345.tar.gz
cpython-993fe3f0357b3539f770c64ae249809981069345.tar.bz2
Issue #14937: Fix typo. Patch by Roger Serwy.
-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 6b5391b..e4c1aff 100644
--- a/Lib/idlelib/AutoComplete.py
+++ b/Lib/idlelib/AutoComplete.py
@@ -143,7 +143,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] == '.':