Skip to content

Commit

Permalink
Merge pull request #258 from tsunammis/master
Browse files Browse the repository at this point in the history
Fix decoding issues when opening README in setup.py
  • Loading branch information
LeoErcolanelli authored Jan 31, 2017
2 parents bb756a8 + ac0c248 commit 8147724
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python

import io
import os
import sys

Expand All @@ -17,7 +18,7 @@
import pypandoc
README = pypandoc.convert(path_readme, 'rst')
except (IOError, ImportError):
with open(path_readme) as readme:
with io.open(path_readme, encoding='utf-8') as readme:
README = readme.read()

VERSION = None
Expand Down

0 comments on commit 8147724

Please sign in to comment.