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:
commit
42e7c9ab03
6
setup.py
6
setup.py
|
@ -16,12 +16,16 @@
|
||||||
|
|
||||||
# Initial code got from http://djangosnippets.org/users/danielroseman/
|
# Initial code got from http://djangosnippets.org/users/danielroseman/
|
||||||
|
|
||||||
|
import codecs
|
||||||
import os
|
import os
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
|
||||||
def read(*rnames):
|
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()
|
return f.read()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue