Bug #2220: handle rlcompleter attribute match failure more gracefully.
 (backport from r61275)
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 @@
         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)
diff --git a/Misc/NEWS b/Misc/NEWS
index 6af11b1..43bc504 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -15,6 +15,8 @@
 Library
 -------
 
+- Bug #2220: handle rlcompleter attribute match failure more gracefully.
+
 - Bug #1725737: In distutil's sdist, exclude RCS, CVS etc. also in the
   root directory, and also exclude .hg, .git, .bzr, and _darcs.