cpython: 64417e7a1760 (original) (raw)
Mercurial > cpython
changeset 100155:64417e7a1760 3.5
Issue #25660: Fix TAB key behaviour in REPL. [#25660]
Yury Selivanov yselivanov@sprymix.com | |
---|---|
date | Thu, 04 Feb 2016 01:23:05 -0500 |
parents | 78f32effc87a |
children | 87dfadd61e0d 980ea968444c |
files | Lib/rlcompleter.py Misc/NEWS |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-)[+] [-] Lib/rlcompleter.py 4 Misc/NEWS 3 |
line wrap: on
line diff
--- a/Lib/rlcompleter.py +++ b/Lib/rlcompleter.py @@ -75,7 +75,9 @@ class Completer: if not text.strip(): if state == 0:
return '\t'[](#l1.7)
readline.insert_text('\t')[](#l1.8)
readline.redisplay()[](#l1.9)
return ''[](#l1.10) else:[](#l1.11) return None[](#l1.12)
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -67,6 +67,9 @@ Core and Builtins