--- a/eric6/DebugClients/Python/FlexCompleter.py Thu Jun 25 19:09:55 2020 +0200 +++ b/eric6/DebugClients/Python/FlexCompleter.py Sat Jun 27 12:08:12 2020 +0200 @@ -48,11 +48,7 @@ </ul> """ -try: - import __builtin__ as builtins -except ImportError: - import builtins - +import builtins import __main__ __all__ = ["Completer"] @@ -151,7 +147,7 @@ 'else'}: word = word + ' ' matches.append(word) - for nspace in [builtins.__dict__, self.namespace]: + for nspace in [self.namespace, builtins.__dict__]: for word, val in nspace.items(): if word[:n] == text and word not in seen: seen.add(word) @@ -235,4 +231,4 @@ return ret # -# eflag: noqa = M702, M111 +# eflag: noqa = M111