Skip to content

Commit b621ca1

Browse files
authored
Restore setup.py compatibility with python 2
#19 broke compatibility with python 2, restore it by doing the same thing different way.
1 parent 6808f54 commit b621ca1

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), encoding='utf-8').read()
14+
return open(os.path.join(os.path.dirname(__file__), fname), 'rb').read().decode('utf-8')
1515

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

0 commit comments

Comments
 (0)