From: Benjamin Peterson Date: Sat, 5 Jul 2008 20:59:18 +0000 (+0000) Subject: fix regression from merge error in rlcompletor X-Git-Tag: v3.0b2~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f385485ec8cf916ed640d6ddb0f27802c3f5a70b;p=thirdparty%2FPython%2Fcpython.git fix regression from merge error in rlcompletor --- diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py index 2739fed8fb6a..a3c331bf82ee 100644 --- a/Lib/rlcompleter.py +++ b/Lib/rlcompleter.py @@ -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