[Checkins] SVN: z3c.jsonrpc/trunk/setup.py Escape the HTML, so that it shows up in PyPI. Sigh, when will it escape

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Jan 24 17:50:14 EST 2008


Log message for revision 83193:
  Escape the HTML, so that it shows up in PyPI. Sigh, when will it escape 
  things correctly!
  

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

-=-
Modified: z3c.jsonrpc/trunk/setup.py
===================================================================
--- z3c.jsonrpc/trunk/setup.py	2008-01-24 22:47:17 UTC (rev 83192)
+++ z3c.jsonrpc/trunk/setup.py	2008-01-24 22:50:14 UTC (rev 83193)
@@ -16,10 +16,12 @@
 $Id:$
 """
 import os
+import xml.sax.saxutils
 from setuptools import setup, find_packages
 
 def read(*rnames):
-    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+    text = open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+    return xml.sax.saxutils.escape(text)
 
 setup (
     name='z3c.jsonrpc',



More information about the Checkins mailing list