eric6/DebugClients/Python/FlexCompleter.py

changeset 7639
422fd05e9c91
parent 7628
f904d0eef264
child 7960
e8fc383322f7
diff -r 176145438b1e -r 422fd05e9c91 eric6/DebugClients/Python/FlexCompleter.py
--- 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

eric ide

mercurial