From 771d9e33b534f0856ea520c45a1e7bac0d93f841 Mon Sep 17 00:00:00 2001 From: cameroncooper Date: Thu, 29 Sep 2022 17:03:25 -0500 Subject: [PATCH] Fix csv in windows --- tests/test_mint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_mint.py b/tests/test_mint.py index 906bfa6..e045c27 100644 --- a/tests/test_mint.py +++ b/tests/test_mint.py @@ -41,7 +41,7 @@ def create_metadata(filename: str, mint_total: int, has_targets: bool) -> str: if has_targets: sample.append(encode_puzzle_hash(bytes32(token_bytes(32)), "xch")) metadata.append(sample) - with open(filename, "w") as f: + with open(filename, "w", newline='') as f: writer = csv.writer(f) writer.writerows([header] + metadata) return filename