Skip to content

Commit

Permalink
Merge pull request #32 from lucad5/patch-1
Browse files Browse the repository at this point in the history
Open etymwn-smaller.tsv as utf-8 file. fixes issue #30
  • Loading branch information
JonathanReeve authored Nov 25, 2024
2 parents 3d12002 + caef11b commit cd7947d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macroetym/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# Parse the CSV file.
etymdict = {}
etymwn = resource_filename(__name__, 'etymwn-smaller.tsv')
with open(etymwn) as csvfile:
with open(etymwn, encoding="utf-8") as csvfile:
csvreader = csv.reader(csvfile, delimiter='\t')
for line in csvreader:
if line[0] in etymdict:
Expand Down

0 comments on commit cd7947d

Please sign in to comment.