[scripts] ensure files use 'utf-8' encoding and '\n' newlines (#7872)

This commit is contained in:
Mike Fährmann
2025-07-22 16:53:40 +02:00
parent afc5b9c9c6
commit e8b2a496ba
7 changed files with 21 additions and 16 deletions

View File

@@ -82,7 +82,7 @@ def insert_test_result(args, result):
path = util.path("test", "results", f"{args.cat}.py")
LOG.info("Adding '%s:%s' test result into '%s'", args.cat, args.sub, path)
with open(path) as fp:
with util.open(path) as fp:
lines = fp.readlines()
lines.insert(-2, result)