--- a/eric7/Project/LexerAssociationDialog.py Tue May 18 19:25:53 2021 +0200 +++ b/eric7/Project/LexerAssociationDialog.py Wed May 19 17:36:34 2021 +0200 @@ -80,7 +80,7 @@ lexer = "Pygments|{0}".format(pygmentsLexer) if ext and lexer: itmList = self.editorLexerList.findItems( - ext, Qt.MatchFlags(Qt.MatchFlag.MatchExactly), 0) + ext, Qt.MatchFlag.MatchExactly, 0) if itmList: index = self.editorLexerList.indexOfTopLevelItem(itmList[0]) itm = self.editorLexerList.takeTopLevelItem(index)