Skip to content

Commit 5a93f70

Browse files
Merge pull request #746 from ElectionDataAnalysis/issue739-windows-encoding
Issue739 windows encoding
2 parents 404698b + ed5778e commit 5a93f70

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/electiondata/userinterface/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ def report(
702702
lowercase=False,
703703
),
704704
)
705-
with open(out_path, "a") as f:
705+
with open(out_path, "a", encoding=constants.default_encoding) as f:
706706
f.write(out_str)
707707
print(f"{et.title()} errors{and_warns} written to {out_path}")
708708

@@ -729,7 +729,7 @@ def report(
729729
lowercase=False,
730730
),
731731
)
732-
with open(out_path, "a") as f:
732+
with open(out_path, "a", encoding=constants.default_encoding) as f:
733733
f.write(out_str)
734734
print(f"{et.title()} warnings written to {out_path}")
735735

0 commit comments

Comments
 (0)