From: Martin v. Löwis Date: Sun, 3 Jun 2012 10:32:42 +0000 (+0200) Subject: PEP 3131: support non-ASCII characters in auto-completion of identifiers. X-Git-Tag: v3.3.0b1~293^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f44a66abc476a6aa57238c005253242b45f827e;p=thirdparty%2FPython%2Fcpython.git PEP 3131: support non-ASCII characters in auto-completion of identifiers. --- diff --git a/Lib/idlelib/AutoComplete.py b/Lib/idlelib/AutoComplete.py index 1298d9f012e4..6b5391ba7909 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] == '.': diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index 334b0c2d97de..de9f55d2f7eb 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -2,7 +2,7 @@ What's New in IDLE 3.2.4? ========================= - Issue #14937: Perform auto-completion of filenames in strings even for - non-ASCII filenames. + non-ASCII filenames. Likewise for identifiers. What's New in IDLE 3.2.3? =========================