Skip to content


Restore compatibility with python 2
Browse files Browse the repository at this point in the history
#19 broke compatibility with python 2, restore it by doing the same thing different way.
  • Loading branch information
AMDmi3 committed May 16, 2018
1 parent 6808f54 commit b621ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
__name__ = "twms"

def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read()
return open(os.path.join(os.path.dirname(__file__), fname), 'rb').read().decode('utf-8')

def glob(fname):
return abs_glob(os.path.join(os.path.dirname(__file__), fname))
Expand Down

0 comments on commit b621ca1

Please sign in to comment.