diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2016-02-04 01:23:05 -0500 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2016-02-04 01:23:05 -0500 |
commit | a7eae4016ed2f97b15000022ce0f39e0b271b37c (patch) | |
tree | 226060b9d79901c2977c84c1401583577ab33f77 /Lib | |
parent | 2b818142d17cc287d3581c7d2fbe6bbaa37ccee2 (diff) | |
download | cpython-git-a7eae4016ed2f97b15000022ce0f39e0b271b37c.tar.gz |
Issue #25660: Fix TAB key behaviour in REPL.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/rlcompleter.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py index 378f5aa647..26f59208bb 100644 --- a/Lib/rlcompleter.py +++ b/Lib/rlcompleter.py @@ -75,7 +75,9 @@ class Completer: if not text.strip(): if state == 0: - return '\t' + readline.insert_text('\t') + readline.redisplay() + return '' else: return None |