summaryrefslogtreecommitdiffstats
path: root/Lib/rlcompleter.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/rlcompleter.py')
-rw-r--r--Lib/rlcompleter.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py
index 94f9341..d517c0e 100644
--- a/Lib/rlcompleter.py
+++ b/Lib/rlcompleter.py
@@ -73,6 +73,12 @@ class Completer:
if self.use_main_ns:
self.namespace = __main__.__dict__
+ if not text.strip():
+ if state == 0:
+ return '\t'
+ else:
+ return None
+
if state == 0:
if "." in text:
self.matches = self.attr_matches(text)