summaryrefslogtreecommitdiff
blob: 9bd43e6a1534bfce7dcdd60794fbcaed0afcc94a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff -ur http-parser-0.7.8.orig/setup.py http-parser-0.7.8/setup.py
--- setup.py	2012-08-05 11:14:22.000000000 +0800
+++ setup.py	2013-01-21 01:54:23.748530621 +0800
@@ -10,7 +10,7 @@
 from distutils.command.sdist import sdist as _sdist
 import glob
 from imp import load_source
-import os
+import os, io
 import shutil
 import sys
 import traceback
@@ -49,7 +49,7 @@
 VERSION = http_parser.__version__
 
 # get long description
-with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
+with io.open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf8') as f:
     LONG_DESCRIPTION = f.read()
 
 def _system(cmd):