Skip to content

Commit

Permalink
Specify encoding when reading changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Sep 24, 2021
1 parent 7108eca commit 932c37d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def run(self, opts):
if self.newer(dest, [src]):
self.info('\tCreating changelog.json')
from setup.changelog import parse
with open(src) as f:
with open(src, encoding='utf-8') as f:
dump_json(parse(f.read(), parse_dates=False), dest)

def clean(self):
Expand Down

0 comments on commit 932c37d

Please sign in to comment.