Skip to content

Commit 381d90d

Browse files
committed
Explicitly decode appdirs.py as UTF-8
1 parent 699bc89 commit 381d90d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

setup.py

Lines changed: 2 additions & 1 deletion
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)