fix: make council source checksum reproducible across platforms

This commit is contained in:
codex committed 2026-10-08 14:52:12 +03:00
1 parent 74f32a3e67
commit 76bcb0db35
10 files changed
+43 -13

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ if __name__ == "__main__":
parser.error("Output must not overwrite the source CSV")
result = prepare_reference(args.source)
text = json.dumps(result, ensure_ascii=False, indent=2) + "\n"
with NamedTemporaryFile(mode="w", encoding="utf-8", dir=args.output.parent,
with NamedTemporaryFile(mode="w", encoding="utf-8", newline="\n", dir=args.output.parent,
prefix=args.output.name + ".", suffix=".tmp", delete=False) as stream:
stream.write(text)
temporary = Path(stream.name)