X-Git-Url: https://projects.mako.cc/source/yourule/blobdiff_plain/ef2e46ac992612652be950ae4aee0e306dc660f5..refs/heads/master:/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)