Skip to content

Commit

Permalink
Merge pull request #14 from haypo/setup_utf8
Browse files Browse the repository at this point in the history
Read README.rst and HISTORY.rst in UTF-8
  • Loading branch information
sigmavirus24 committed Jun 8, 2015
2 parents 0dc2402 + cf15373 commit c3a8c9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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 @@ -18,10 +19,10 @@
'rfc3986',
]

with open('README.rst') as f:
with io.open('README.rst', encoding='utf-8') as f:
readme = f.read()

with open('HISTORY.rst') as f:
with io.open('HISTORY.rst', encoding='utf-8') as f:
history = f.read()

setup(
Expand Down

0 comments on commit c3a8c9b

Please sign in to comment.