Skip to content

Commit

Permalink
Use explicit UTF8 encoding (#452)
Browse files Browse the repository at this point in the history
* Use explicit UTF8 encoding

Resolves #451

* Resolve encoding issue with Python3 (#1)

* Use open from Py3 in Py2
  • Loading branch information
ideasman42 authored and Blendify committed Aug 7, 2017
1 parent 3e386cd commit 728d5da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -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__

Expand All @@ -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': [
Expand Down

0 comments on commit 728d5da

Please sign in to comment.