[Checkins] SVN: z3c.form/trunk/setup.py Get encoding stuff worked
out, because PyPI is not unicode aware. Sigh.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Jan 23 16:49:10 EST 2008
Log message for revision 83127:
Get encoding stuff worked out, because PyPI is not unicode aware. Sigh.
Changed:
U z3c.form/trunk/setup.py
-=-
Modified: z3c.form/trunk/setup.py
===================================================================
--- z3c.form/trunk/setup.py 2008-01-23 21:41:28 UTC (rev 83126)
+++ z3c.form/trunk/setup.py 2008-01-23 21:49:10 UTC (rev 83127)
@@ -21,6 +21,7 @@
def read(*rnames):
text = open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+ text = unicode(text, 'utf-8').encode('ascii', 'xmlcharrefreplace')
return xml.sax.saxutils.escape(text)
chapters = '\n'.join(
More information about the Checkins
mailing list