Skip to content

Commit a59afdb

Browse files
committed
Improve setup module
1 parent d398348 commit a59afdb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# -*- coding: utf-8 -*-
2+
3+
import codecs
14
from os.path import abspath
25
from os.path import dirname
36
from os.path import join
@@ -12,7 +15,7 @@ def read_relative_file(filename):
1215
Returns contents of the given file, whose path is supposed relative
1316
to this module.
1417
"""
15-
with open(join(dirname(abspath(__file__)), filename)) as f:
18+
with codecs.open(join(dirname(abspath(__file__)), filename), encoding='utf-8') as f:
1619
return f.read()
1720

1821

0 commit comments

Comments
 (0)