Fix: read README.rst and CHANGES.rst using utf-8 codecs.

This commit is contained in:
makoto tsuyuki 2017-05-18 19:21:44 +09:00
parent 8846354dc2
commit 2d61715e40

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()