Skip to content

Commit

Permalink
Fixed reading of UTF-8 files in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
soravux committed Sep 23, 2015
1 parent b46dde2 commit 0424dc6
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
Expand Up @@ -22,7 +22,8 @@
from pypandoc import convert
except ImportError:
warnings.append("warning: pypandoc module not found, could not convert Markdown to RST")
read_md = lambda f: open(f, 'r').read()
import codecs
read_md = lambda f: codecs.open(f, 'r', 'utf-8').read()
else:
read_md = lambda f: convert(f, 'rst')

Expand Down

0 comments on commit 0424dc6

Please sign in to comment.