[Checkins] SVN: z3c.currency/trunk/setup.py Stupid setuptools cannot handle non-ascii characters.

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Sep 12 17:54:41 EDT 2007


Log message for revision 79605:
  Stupid setuptools cannot handle non-ascii characters.
  

Changed:
  U   z3c.currency/trunk/setup.py

-=-
Modified: z3c.currency/trunk/setup.py
===================================================================
--- z3c.currency/trunk/setup.py	2007-09-12 21:40:03 UTC (rev 79604)
+++ z3c.currency/trunk/setup.py	2007-09-12 21:54:41 UTC (rev 79605)
@@ -19,7 +19,8 @@
 from setuptools import setup, find_packages
 
 def read(*rnames):
-    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+    return open(os.path.join(os.path.dirname(__file__),
+                 *rnames)).read().decode('utf-8').encode('latin-1', 'ignore')
 
 setup (
     name='z3c.currency',



More information about the Checkins mailing list