floppym     14/03/22 21:16:03

  Added:                pytz-2014.1-setup.py.patch
  Log:
  Specify the correct encoding when opening README.txt in setup.py, bug 504778 
by Alex Turbov.
  
  (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 
0BBEEA1FEA4843A4)

Revision  Changes    Path
1.1                  dev-python/pytz/files/pytz-2014.1-setup.py.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pytz/files/pytz-2014.1-setup.py.patch?rev=1.1&view=markup
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

Index: pytz-2014.1-setup.py.patch
===================================================================
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
 pytz setup script
 '''
 
-import pytz, sys, os, os.path
+import pytz, sys, os, os.path, io
 
 try:
     from setuptools import setup
@@ -27,7 +27,7 @@
     version=pytz.VERSION,
     zip_safe=True,
     description='World timezone definitions, modern and historical',
-    long_description=open('README.txt','r').read(),
+    long_description=io.open('README.txt','r',encoding='utf8').read(),
     author=me,
     author_email=memail,
     maintainer=me,




Reply via email to