summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-03-06 07:46:26 (GMT)
committerGeorg Brandl <georg@python.org>2008-03-06 07:46:26 (GMT)
commitab61dce0e11a2160537a865afd50fdf48aa596dd (patch)
tree8bd38755a59651502f5a5ff8e44fed10bc1050a2 /Lib
parent0e305557482aa3c35140c7d719e9f982e00a2270 (diff)
downloadcpython-ab61dce0e11a2160537a865afd50fdf48aa596dd.zip
cpython-ab61dce0e11a2160537a865afd50fdf48aa596dd.tar.gz
cpython-ab61dce0e11a2160537a865afd50fdf48aa596dd.tar.bz2
Bug #2220: handle rlcompleter attribute match failure more gracefully.
(backport from r61275)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/rlcompleter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py
index dab0cb9..a2d5fe6 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)