We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5c478e + 381d90d commit 8eacfa3Copy full SHA for 8eacfa3
setup.py
@@ -1,4 +1,5 @@
1
#!/usr/bin/env python
2
+from io import open
3
import os
4
# appdirs is a dependency of setuptools, so allow installing without it.
5
try:
@@ -9,7 +10,7 @@
9
10
11
12
def read(fname):
- inf = open(os.path.join(os.path.dirname(__file__), fname))
13
+ inf = open(os.path.join(os.path.dirname(__file__), fname), encoding='utf8')
14
out = "\n" + inf.read().replace("\r\n", "\n")
15
inf.close()
16
return out
0 commit comments