--- a/src/eric7/QScintilla/APIsManager.py Tue Sep 03 17:28:40 2024 +0200 +++ b/src/eric7/QScintilla/APIsManager.py Tue Sep 03 17:42:44 2024 +0200 @@ -207,14 +207,11 @@ if not os.path.exists(apiDir): # use lower case language apiDir = os.path.join(apisDir, self.__lexer.language().lower()) - fnames = {f for f in glob.glob(os.path.join(apiDir, "*.api"))} + fnames = set(glob.glob(os.path.join(apiDir, "*.api"))) # combine with the QScintilla standard behavior - fnames |= { - f - for f in glob.glob( - os.path.join(apisDir, self.__lexer.lexer(), "*.api") - ) - } + fnames |= set( + glob.glob(os.path.join(apisDir, self.__lexer.lexer(), "*.api")) + ) return sorted(fnames) return []