Skip to content

Commit

Permalink
Merge pull request mattja#3 from yoavram/codec_error
Browse files Browse the repository at this point in the history
Specify utf8 encoding when opening files in setup.py
  • Loading branch information
mattja committed Jan 28, 2016
2 parents e3d4656 + e69864d commit 721f961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
here = os.path.abspath(os.path.dirname(__file__))

def read(*parts):
return codecs.open(os.path.join(here, *parts), 'r').read()
return codecs.open(os.path.join(here, *parts), 'r', encoding='utf8').read()

def find_version(*file_paths):
version_file = read(*file_paths)
Expand Down

0 comments on commit 721f961

Please sign in to comment.