Skip to content

Commit

Permalink
Merge pull request #122 from timokau/readme-encoding
Browse files Browse the repository at this point in the history
Specify README file encoding
  • Loading branch information
malb committed May 24, 2018
2 parents af04d62 + 7e56fe4 commit f411c59
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 @@ -4,6 +4,7 @@
import os
import subprocess
import sys
import io

if "READTHEDOCS" in os.environ:
# When building with readthedocs, install the dependencies too.
Expand Down Expand Up @@ -202,7 +203,7 @@ def readme_to_long_description():
Python wants long descriptions to be plain ASCII. Our contributors have names that are not
plain ASCII. Thus, we cut off the list of contributors when reading the long description.
"""
long_description=open('README.rst').read()
long_description=io.open('README.rst', encoding='utf-8').read()
cut = long_description.index("Attribution & License")
return str(long_description[:cut].encode('ascii'))

Expand Down

0 comments on commit f411c59

Please sign in to comment.