diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py index dab0cb9eaa3..a2d5fe6a8f0 100644 --- a/Lib/rlcompleter.py +++ b/Lib/rlcompleter.py @@ -125,7 +125,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)