From 1674bd753eb92b922627489a669ef57ef9853b44 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Mon, 9 Jan 2012 15:38:19 -0800 Subject: Fix setup.py Unicode issue with README.rst Fixes issue #135 --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index a49ec9d6..954a1022 100755 --- a/setup.py +++ b/setup.py @@ -8,6 +8,7 @@ # file, which you should have received as part of this distribution. import sys +import codecs try: from setuptools import setup, Command except ImportError: @@ -31,7 +32,7 @@ from sleekxmpp.version import __version__ VERSION = __version__ DESCRIPTION = 'SleekXMPP is an elegant Python library for XMPP (aka Jabber, Google Talk, etc).' -with open('README.rst') as readme: +with codecs.open('README.rst', 'r', encoding='UTF-8') as readme: LONG_DESCRIPTION = ''.join(readme) CLASSIFIERS = [ 'Intended Audience :: Developers', -- cgit v1.2.3