summaryrefslogtreecommitdiffstats
path: root/Lib/rlcompleter.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2016-02-04 06:24:56 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2016-02-04 06:24:56 (GMT)
commitaecef0d2d5962d3f79383e307a7469df783e7357 (patch)
tree14e5f4e396d3506a0a821069e4225ee3db4125fa /Lib/rlcompleter.py
parente922289620af49e9eb928679da4f5637fd75f924 (diff)
parenta7eae4016ed2f97b15000022ce0f39e0b271b37c (diff)
downloadcpython-aecef0d2d5962d3f79383e307a7469df783e7357.zip
cpython-aecef0d2d5962d3f79383e307a7469df783e7357.tar.gz
cpython-aecef0d2d5962d3f79383e307a7469df783e7357.tar.bz2
Merge 3.5 (issue #25660)
Diffstat (limited to 'Lib/rlcompleter.py')
-rw-r--r--Lib/rlcompleter.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py
index 319e826..931edcc 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