Skip to content

Commit 8eacfa3

Browse files
authored
Merge pull request #152 from neirbowj/explicit_encoding
Explicitly decode appdirs.py as UTF-8
2 parents c5c478e + 381d90d commit 8eacfa3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python
2+
from io import open
23
import os
34
# appdirs is a dependency of setuptools, so allow installing without it.
45
try:
@@ -9,7 +10,7 @@
910

1011

1112
def read(fname):
12-
inf = open(os.path.join(os.path.dirname(__file__), fname))
13+
inf = open(os.path.join(os.path.dirname(__file__), fname), encoding='utf8')
1314
out = "\n" + inf.read().replace("\r\n", "\n")
1415
inf.close()
1516
return out

0 commit comments

Comments
 (0)