--- a/src/eric7/eric7_api.py Sun Dec 03 16:44:52 2023 +0100 +++ b/src/eric7/eric7_api.py Sun Dec 03 19:46:34 2023 +0100 @@ -297,7 +297,7 @@ sys.exit(3) try: with open(basesFile, "w", encoding="utf-8", newline=newline) as out: - for baseEntry in sorted(basesDict.keys()): + for baseEntry in sorted(basesDict): out.write( "{0} {1}\n".format( baseEntry, " ".join(sorted(basesDict[baseEntry]))