Merge pull request #9 from google/use-codecs

Specify encoding in reading README.rst from setup.py.
This commit is contained in:
Shuhei Iitsuka
2018-04-04 10:31:27 +09:00
committed by GitHub

View File

@@ -15,11 +15,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import codecs
import os
from setuptools import setup, find_packages
def read_file(name):
with open(os.path.join(os.path.dirname(__file__), name), 'r') as f:
with codecs.open(
os.path.join(os.path.dirname(__file__), name), 'r', 'utf-8') as f:
return f.read().strip()
setup(