--- a/eric6/QScintilla/Lexers/LexerPython.py Sat Jun 20 17:36:20 2020 +0200 +++ b/eric6/QScintilla/Lexers/LexerPython.py Sun Jun 21 18:26:12 2020 +0200 @@ -233,12 +233,7 @@ @return string giving the keywords (string) or None """ if kwSet == 1: - if self.language() in ["Python", "Python2"]: - keywords = ("and as assert break class continue def del elif " - "else except exec finally for from global if " - "import in is lambda not or pass print raise " - "return try while with yield") - elif self.language() == "Python3": + if self.language() == "Python3": keywords = ("False None True and as assert break class " "continue def del elif else except finally for " "from global if import in is lambda nonlocal not "