Skip to content

Commit

Permalink
Open README.rst with utf-8 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
gergondet authored and pganssle committed Mar 26, 2018
1 parent 5be0893 commit f39c1ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
from distutils.version import LooseVersion
import warnings

import io

if isfile("MANIFEST"):
os.unlink("MANIFEST")

Expand All @@ -27,7 +29,7 @@ def run(self):
PACKAGES = find_packages(where='.', exclude=['dateutil.test'])

def README():
with open('README.rst') as f:
with io.open('README.rst', encoding='utf-8') as f:
readme_lines = f.readlines()

# The .. doctest directive is not supported by PyPA
Expand Down

0 comments on commit f39c1ae

Please sign in to comment.