summaryrefslogtreecommitdiffstats
path: root/Lib/rlcompleter.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/rlcompleter.py')
-rw-r--r--Lib/rlcompleter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py
index 74b2e47..c605c7d 100644
--- a/Lib/rlcompleter.py
+++ b/Lib/rlcompleter.py
@@ -119,7 +119,7 @@ class Completer:
import re
m = re.match(r"(\w+(\.\w+)*)\.(\w*)", text)
if not m:
- return
+ return []
expr, attr = m.group(1, 3)
object = eval(expr, self.namespace)
words = dir(object)