updated README to note that the project isn't working
[yourule] / svgruler.py
index ccba88813c2475fc61381974d538a69ca58b9dd5..21b7a28d5f9c4ae080ecc4e0b4c20e446c62163c 100644 (file)
@@ -19,7 +19,7 @@
 # <http://http://www.affero.org/oagpl.html>.
 
 # define the length of things
-from __future__ import division
+
 import SVGdraw
 
 class SVGRuler:
@@ -77,8 +77,8 @@ class SVGRuler:
         self.drawing.setSVG(self.svg)
 
     def getxml(self):
-        import cStringIO
-        xml = cStringIO.StringIO()
+        import io
+        xml = io.StringIO()
         xml.write("<?xml version='1.0' encoding='UTF-8'?>\n")
         xml.write("<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\" \"http://www .w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd \">\n")      
         self.svg.toXml(0,xml)

Benjamin Mako Hill || Want to submit a patch?