Skip to content

Commit

Permalink
Update csv loader to be utf-8 explicitly (for Windows users)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterrrock2 authored Jul 4, 2024
1 parent fc3dedc commit 9089484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/votekit/cvr_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def convert_row(row):
return [int(item) if item.isdigit() else item for item in row]

data = []
with open(fpath, "r") as f:
with open(fpath, "r", encoding="utf-8") as f:
reader = csv.reader(f)
for row in reader:
# This just removes any empty strings that are hanging out since
Expand Down

0 comments on commit 9089484

Please sign in to comment.