diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2012-06-03 10:32:42 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2012-06-03 10:32:42 (GMT) |
commit | 9f44a66abc476a6aa57238c005253242b45f827e (patch) | |
tree | f576d85a6ab879df03f8d2ad8dff5097797f4264 /Lib/idlelib/AutoComplete.py | |
parent | 97aa21b46a931cea07a37d8d8d3069bfd93a558f (diff) | |
download | cpython-9f44a66abc476a6aa57238c005253242b45f827e.zip cpython-9f44a66abc476a6aa57238c005253242b45f827e.tar.gz cpython-9f44a66abc476a6aa57238c005253242b45f827e.tar.bz2 |
PEP 3131: support non-ASCII characters in auto-completion of identifiers.
Diffstat (limited to 'Lib/idlelib/AutoComplete.py')
-rw-r--r-- | Lib/idlelib/AutoComplete.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/AutoComplete.py b/Lib/idlelib/AutoComplete.py index 1298d9f..6b5391b 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: + 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] == '.': |