Permalink
Browse files

Fixed readme decoding.

Closes #85.
  • Loading branch information...
1 parent a5522b8 commit 8bf7f8219ca6e31b00d48c446eaa8fe129631f5d @jakubroztocil committed Aug 16, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 setup.py
View
@@ -1,6 +1,7 @@
import os
import sys
import re
+import codecs
from setuptools import setup
import httpie
@@ -25,7 +26,7 @@
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)

0 comments on commit 8bf7f82

Please sign in to comment.