src/eric7/DebugClients/Python/FlexCompleter.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 10417
c6011e501282
--- a/src/eric7/DebugClients/Python/FlexCompleter.py	Sun Nov 06 11:22:39 2022 +0100
+++ b/src/eric7/DebugClients/Python/FlexCompleter.py	Mon Nov 07 17:19:58 2022 +0100
@@ -49,6 +49,8 @@
 """
 
 import builtins
+import keyword
+import re
 
 import __main__
 
@@ -135,8 +137,6 @@
         @return A list of all keywords, built-in functions and names currently
         defined in self.namespace that match.
         """
-        import keyword
-
         matches = []
         seen = {"__builtins__"}
         n = len(text)
@@ -178,8 +178,6 @@
         @param text The text to be completed. (string)
         @return A list of all matches.
         """
-        import re
-
         m = re.match(r"(\w+(\.\w+)*)\.(\w*)", text)
         if not m:
             return []

eric ide

mercurial