]> granicus.if.org Git - python/commitdiff
fix regression from merge error in rlcompletor
authorBenjamin Peterson <benjamin@python.org>
Sat, 5 Jul 2008 20:59:18 +0000 (20:59 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 5 Jul 2008 20:59:18 +0000 (20:59 +0000)
Lib/rlcompleter.py

index 2739fed8fb6a245dc92b4a1ff60ca4f1be47c2f6..a3c331bf82ee6e444d0e3b8d9701df4e0a2556b8 100644 (file)
@@ -106,7 +106,7 @@ class Completer:
                 matches.append(word)
         for nspace in [builtins.__dict__, self.namespace]:
             for word, val in nspace.items():
-                if word[:n] == text and word != "builtins":
+                if word[:n] == text and word != "__builtins__":
                     matches.append(self._callable_postfix(val, word))
         return matches