From d05f410e3ea124f14cdbcbd4280611dcedd76e5a Mon Sep 17 00:00:00 2001 From: Erik Cederstrand Date: Tue, 15 Apr 2014 22:52:04 +0200 Subject: System encoding might not be utf-8 Eliminates UnicodeDecodeError when opening README.rst if system encoding is not utf-8--- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') 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', -- cgit v1.2.3