Skip to content

Commit

Permalink
Merge pull request #83 from legoktm/patch-1
Browse files Browse the repository at this point in the history
Force opening README.rst as utf-8 in Py3k
  • Loading branch information
earwig committed Aug 3, 2014
2 parents 87e0079 + cb875ae commit 32d8bc5
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 @@ -32,7 +32,7 @@
from mwparserfromhell import __version__
from mwparserfromhell.compat import py26, py3k

with open("README.rst") as fp:
with open("README.rst", **{'encoding':'utf-8'} if py3k else {}) as fp:
long_docs = fp.read()

tokenizer = Extension("mwparserfromhell.parser._tokenizer",
Expand Down

0 comments on commit 32d8bc5

Please sign in to comment.