1 |
floppym 14/03/22 21:16:03 |
2 |
|
3 |
Added: pytz-2014.1-setup.py.patch |
4 |
Log: |
5 |
Specify the correct encoding when opening README.txt in setup.py, bug 504778 by Alex Turbov. |
6 |
|
7 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-python/pytz/files/pytz-2014.1-setup.py.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pytz/files/pytz-2014.1-setup.py.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pytz/files/pytz-2014.1-setup.py.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: pytz-2014.1-setup.py.patch |
16 |
=================================================================== |
17 |
--- a/setup.py |
18 |
+++ b/setup.py |
19 |
@@ -2,7 +2,7 @@ |
20 |
pytz setup script |
21 |
''' |
22 |
|
23 |
-import pytz, sys, os, os.path |
24 |
+import pytz, sys, os, os.path, io |
25 |
|
26 |
try: |
27 |
from setuptools import setup |
28 |
@@ -27,7 +27,7 @@ |
29 |
version=pytz.VERSION, |
30 |
zip_safe=True, |
31 |
description='World timezone definitions, modern and historical', |
32 |
- long_description=open('README.txt','r').read(), |
33 |
+ long_description=io.open('README.txt','r',encoding='utf8').read(), |
34 |
author=me, |
35 |
author_email=memail, |
36 |
maintainer=me, |