summaryrefslogtreecommitdiff
path: root/Lib/idlelib/AutoComplete.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2012-06-03 12:33:23 +0200
committerMartin v. Löwis <martin@v.loewis.de>2012-06-03 12:33:23 +0200
commitf20940792df1f3b1dbda3ec5fdd6a8b6bc9f96d5 (patch)
tree6d90e2db588d354936773ef9807ea6d030597d52 /Lib/idlelib/AutoComplete.py
parent428d161b577118c3160839d659a3b0b4afd577e2 (diff)
parent9f44a66abc476a6aa57238c005253242b45f827e (diff)
downloadcpython-git-f20940792df1f3b1dbda3ec5fdd6a8b6bc9f96d5.tar.gz
merge 3.2
Diffstat (limited to 'Lib/idlelib/AutoComplete.py')
-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 a9518a389e..b38b108d34 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:
+ 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] == '.':