Skip to content

Commit 728d5da

Browse files
ideasman42Blendify
authored andcommitted
Use explicit UTF8 encoding (#452)
* Use explicit UTF8 encoding Resolves #451 * Resolve encoding issue with Python3 (#1) * Use open from Py3 in Py2
1 parent 3e386cd commit 728d5da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
.. _github: https://www.github.com/snide/sphinx_rtd_theme
55
66
"""
7+
from io import open
78
from setuptools import setup
89
from sphinx_rtd_theme import __version__
910

@@ -16,7 +17,7 @@
1617
author='Dave Snider',
1718
author_email='[email protected]',
1819
description='Read the Docs theme for Sphinx',
19-
long_description=open('README.rst').read(),
20+
long_description=open('README.rst', encoding='utf-8').read(),
2021
zip_safe=False,
2122
packages=['sphinx_rtd_theme'],
2223
package_data={'sphinx_rtd_theme': [

0 commit comments

Comments
 (0)