From 8bf7f8219ca6e31b00d48c446eaa8fe129631f5d Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Thu, 16 Aug 2012 03:11:15 +0200 Subject: [PATCH] Fixed readme decoding. Closes #85. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index efb42727..780b07c7 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ import os import sys import re +import codecs from setuptools import setup import httpie @@ -25,7 +26,7 @@ if 'win32' in str(sys.platform).lower(): def long_description(): """Pre-process the README so that PyPi can render it properly.""" - with open('README.rst') as f: + with codecs.open('README.rst', encoding='utf8') as f: rst = f.read() code_block = '(:\n\n)?\.\. code-block::.*' rst = re.sub(code_block, '::', rst)