X-Git-Url: https://projects.mako.cc/source/yourule/blobdiff_plain/92f1711470719d788b2230d0e50dcef0a0816b39..221983b0b68acaa97f8b2c2ba74b7e7fc0e3a84f:/svgruler.py diff --git a/svgruler.py b/svgruler.py index ccba888..21b7a28 100644 --- a/svgruler.py +++ b/svgruler.py @@ -19,7 +19,7 @@ # . # 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("\n") xml.write("\n") self.svg.toXml(0,xml)