Skip to content

Commit 6bf1379

Browse files
committed
add encoding=constants.default_encoding in report()
1 parent 6d2f2f8 commit 6bf1379

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
@@ -703,7 +703,7 @@ def report(
703703
),
704704
)
705705
with open(out_path, "a") as f:
706-
f.write(out_str)
706+
f.write(out_str, encoding=constants.default_encoding)
707707
print(f"{et.title()} errors{and_warns} written to {out_path}")
708708

709709
# process name keys with only warnings (unless warnings suppressed)
@@ -730,7 +730,7 @@ def report(
730730
),
731731
)
732732
with open(out_path, "a") as f:
733-
f.write(out_str)
733+
f.write(out_str, encoding=constants.default_encoding)
734734
print(f"{et.title()} warnings written to {out_path}")
735735

736736
# define return dictionary with reported keys set to {} and other keys preserved

0 commit comments

Comments
 (0)