diff options
| author | Erik Cederstrand | 2014-04-15 22:52:04 +0200 |
|---|---|---|
| committer | Erik Cederstrand | 2014-04-15 22:52:04 +0200 |
| commit | d05f410e3ea124f14cdbcbd4280611dcedd76e5a (patch) | |
| tree | 0ed75329e00239e0eaabc8907eb6ea1fd40f1451 | |
| parent | 9ca821ad6b5f2523275682c10adba3d1f2e09edc (diff) | |
| download | django-debug-toolbar-d05f410e3ea124f14cdbcbd4280611dcedd76e5a.tar.bz2 | |
System encoding might not be utf-8
Eliminates UnicodeDecodeError when opening README.rst if system encoding is not utf-8
| -rw-r--r-- | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,11 +1,12 @@ from setuptools import setup, find_packages +from io import open setup( name='django-debug-toolbar', version='1.1', description='A configurable set of panels that display various debug ' 'information about the current request/response.', - long_description=open('README.rst').read(), + long_description=open('README.rst', encoding='utf-8').read(), author='Rob Hudson', author_email='rob@cogit8.org', url='https://github.com/django-debug-toolbar/django-debug-toolbar', |
