diff -r 0b936ff1bbb9 -r a2bc06a54d9d src/eric7/QScintilla/Lexers/LexerPython.py --- a/src/eric7/QScintilla/Lexers/LexerPython.py Sun Nov 06 11:22:39 2022 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerPython.py Mon Nov 07 17:19:58 2022 +0100 @@ -8,6 +8,7 @@ """ import contextlib +import keyword import re from PyQt6.Qsci import QsciLexerPython, QsciScintilla @@ -233,8 +234,6 @@ """ if kwSet == 1: if self.language() == "Python3": - import keyword - keywords = " ".join(keyword.kwlist) elif self.language() == "MicroPython": keywords = (