Skip to content

Commit

Permalink
Merge pull request #9 from Chia-Network/cameroncooper-patch-2
Browse files Browse the repository at this point in the history
Fix csv in windows
  • Loading branch information
wallentx authored Sep 30, 2022
2 parents b08cd0d + 771d9e3 commit 0784d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_mint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0784d9a

Please sign in to comment.