Skip to content

Commit f789ca9

Browse files
authored
Set encodnig when reading README.md
Fixes `UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 86: ordinal not in range(128)`
1 parent 25f95e0 commit f789ca9

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
@@ -11,7 +11,7 @@
1111
__name__ = "twms"
1212

1313
def read(fname):
14-
return open(os.path.join(os.path.dirname(__file__), fname)).read()
14+
return open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read()
1515

1616
def glob(fname):
1717
return abs_glob(os.path.join(os.path.dirname(__file__), fname))

0 commit comments

Comments
 (0)