Fix: read README.rst and CHANGES.rst using utf-8 codecs.
This commit is contained in:
parent
8846354dc2
commit
2d61715e40
1 changed files with 5 additions and 1 deletions
6
setup.py
6
setup.py
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue