aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Cederstrand2014-04-15 22:52:04 +0200
committerErik Cederstrand2014-04-15 22:52:04 +0200
commitd05f410e3ea124f14cdbcbd4280611dcedd76e5a (patch)
tree0ed75329e00239e0eaabc8907eb6ea1fd40f1451
parent9ca821ad6b5f2523275682c10adba3d1f2e09edc (diff)
downloaddjango-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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 05ae722..f0fa3cd 100644
--- a/setup.py
+++ b/setup.py
@@ -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',