summaryrefslogtreecommitdiffstats
path: root/Lib/rlcompleter.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-03-06 07:43:02 (GMT)
committerGeorg Brandl <georg@python.org>2008-03-06 07:43:02 (GMT)
commit4286138e7b06e5dd2cb1e8ebf12f768d018be3c2 (patch)
treed79a7facc567dda6f4aa78e3085f9bdcb5715618 /Lib/rlcompleter.py
parenta7bd27f0a8dd7acbf0098f50d28ed9783fdce605 (diff)
downloadcpython-4286138e7b06e5dd2cb1e8ebf12f768d018be3c2.zip
cpython-4286138e7b06e5dd2cb1e8ebf12f768d018be3c2.tar.gz
cpython-4286138e7b06e5dd2cb1e8ebf12f768d018be3c2.tar.bz2
#2220: handle matching failure more gracefully.
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 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)