Skip to content

Commit ba6c034

Browse files
committed
Fix utf8 file input in setup.py
1 parent ac8311f commit ba6c034

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414

1515

1616
import os
17+
import codecs
1718
from setuptools import setup, find_packages
1819

1920

2021
def read(*rnames):
21-
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
22+
return codecs.open(os.path.join(os.path.dirname(__file__), *rnames), encoding='utf-8').read()
2223

2324

2425
setup(

0 commit comments

Comments
 (0)