Skip to content

Commit

Permalink
Explicitly decode appdirs.py as UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
neirbowj committed Aug 22, 2020
1 parent 699bc89 commit 381d90d
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

0 comments on commit 381d90d

Please sign in to comment.