Merge pull request #64 from uncovertruth/fix/read_CHANGES_as_utf8

Fix: read README.rst and CHANGES.rst using utf-8 codecs.
This commit is contained in:
blag 2017-05-18 06:55:30 -06:00 committed by GitHub
commit 42e7c9ab03

View file

@ -16,12 +16,16 @@
# Initial code got from http://djangosnippets.org/users/danielroseman/
import codecs
import os
from setuptools import setup, find_packages
def read(*rnames):
with open(os.path.join(os.path.dirname(__file__), *rnames)) as f:
with codecs.open(
os.path.join(os.path.dirname(__file__), *rnames),
'r', 'utf-8',
) as f:
return f.read()