summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2016-02-04 01:24:56 -0500
committerYury Selivanov <yselivanov@sprymix.com>2016-02-04 01:24:56 -0500
commitaecef0d2d5962d3f79383e307a7469df783e7357 (patch)
tree14e5f4e396d3506a0a821069e4225ee3db4125fa
parente922289620af49e9eb928679da4f5637fd75f924 (diff)
parenta7eae4016ed2f97b15000022ce0f39e0b271b37c (diff)
downloadcpython-git-aecef0d2d5962d3f79383e307a7469df783e7357.tar.gz
Merge 3.5 (issue #25660)
-rw-r--r--Lib/rlcompleter.py4
-rw-r--r--Misc/NEWS3
2 files changed, 6 insertions, 1 deletions
diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py
index 319e826271..931edcc4c3 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
diff --git a/Misc/NEWS b/Misc/NEWS
index 2e8e0db196..60ea2da5f7 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -163,6 +163,9 @@ Core and Builtins
- Issue #26171: Fix possible integer overflow and heap corruption in
zipimporter.get_data().
+- Issue #25660: Fix TAB key behaviour in REPL with readline.
+
+
Library
-------