forked from admin/miem_workers
fix: make council source checksum reproducible across platforms
This commit is contained in:
1 parent
74f32a3e67
commit
76bcb0db35
10 files changed
+43
-13
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user