--- 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 []