From 9f44a66abc476a6aa57238c005253242b45f827e Mon Sep 17 00:00:00 2001 From: "Martin v. Löwis" Date: Sun, 3 Jun 2012 12:32:42 +0200 Subject: PEP 3131: support non-ASCII characters in auto-completion of identifiers. --- Lib/idlelib/AutoComplete.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/idlelib/AutoComplete.py') diff --git a/Lib/idlelib/AutoComplete.py b/Lib/idlelib/AutoComplete.py index 1298d9f012e..6b5391ba790 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] == '.': -- cgit v1.2.3