Skip to content

Commit

Permalink
Improve setup module
Browse files Browse the repository at this point in the history
  • Loading branch information
ellmetha committed Jun 30, 2016
1 parent d398348 commit a59afdb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-

import codecs
from os.path import abspath
from os.path import dirname
from os.path import join
Expand All @@ -12,7 +15,7 @@ def read_relative_file(filename):
Returns contents of the given file, whose path is supposed relative
to this module.
"""
with open(join(dirname(abspath(__file__)), filename)) as f:
with codecs.open(join(dirname(abspath(__file__)), filename), encoding='utf-8') as f:
return f.read()


Expand Down

0 comments on commit a59afdb

Please sign in to comment.