Skip to content

Commit b35b1f8

Browse files
authored
Use io.open() and 'utf-8' to read description
Extra fix for #28 to eliminate FreeBSD 12 + Python 3.6.1 UnicodeDecodeError upon installation.
1 parent 22135ba commit b35b1f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def get_version(package):
1515
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
1616

1717
def read_all(f):
18-
with open(f) as I:
18+
with io.open(f, encoding="utf-8") as I:
1919
return I.read()
2020

2121
requirements = map(str.strip, open("requirements.txt").readlines())

0 commit comments

Comments
 (0)