Commit 9f44a66a authored by Martin v. Löwis's avatar Martin v. Löwis

PEP 3131: support non-ASCII characters in auto-completion of identifiers.

parent 97aa21b4
......@@ -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] == '.':
......
......@@ -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?
=========================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment