From 728d5da2e4e8f5fb2c964217d55299d00332e359 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 7 Aug 2017 13:03:12 +1000 Subject: [PATCH] Use explicit UTF8 encoding (#452) * Use explicit UTF8 encoding Resolves #451 * Resolve encoding issue with Python3 (#1) * Use open from Py3 in Py2 --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e37915395..743eec47e 100644 --- a/setup.py +++ b/setup.py @@ -4,6 +4,7 @@ .. _github: https://www.github.com/snide/sphinx_rtd_theme """ +from io import open from setuptools import setup from sphinx_rtd_theme import __version__ @@ -16,7 +17,7 @@ author='Dave Snider', author_email='dave.snider@gmail.com', description='Read the Docs theme for Sphinx', - long_description=open('README.rst').read(), + long_description=open('README.rst', encoding='utf-8').read(), zip_safe=False, packages=['sphinx_rtd_theme'], package_data={'sphinx_rtd_theme': [