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.
1 parent d398348 commit a59afdbCopy full SHA for a59afdb
setup.py
@@ -1,3 +1,6 @@
1
+# -*- coding: utf-8 -*-
2
+
3
+import codecs
4
from os.path import abspath
5
from os.path import dirname
6
from os.path import join
@@ -12,7 +15,7 @@ def read_relative_file(filename):
12
15
Returns contents of the given file, whose path is supposed relative
13
16
to this module.
14
17
"""
- with open(join(dirname(abspath(__file__)), filename)) as f:
18
+ with codecs.open(join(dirname(abspath(__file__)), filename), encoding='utf-8') as f:
19
return f.read()
20
21
0 commit comments