Skip to content

Commit

Permalink
Merge pull request #152 from neirbowj/explicit_encoding
Browse files Browse the repository at this point in the history
Explicitly decode appdirs.py as UTF-8
  • Loading branch information
zoofood authored Jan 28, 2021
2 parents c5c478e + 381d90d commit 8eacfa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
from io import open
import os
# appdirs is a dependency of setuptools, so allow installing without it.
try:
Expand All @@ -9,7 +10,7 @@


def read(fname):
inf = open(os.path.join(os.path.dirname(__file__), fname))
inf = open(os.path.join(os.path.dirname(__file__), fname), encoding='utf8')
out = "\n" + inf.read().replace("\r\n", "\n")
inf.close()
return out
Expand Down

1 comment on commit 8eacfa3

@kloczek
Copy link

@kloczek kloczek commented on 8eacfa3 Feb 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any plans to mak enew release? :P

Please sign in to comment.