From a1ab401be4f8cc87c0945a1e26193085afad182e Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Thu, 23 Jun 2016 16:12:58 +0200 Subject: [PATCH] Remove old svg rewrite code that has alread moved to svgutil.py --- boxes/__init__.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/boxes/__init__.py b/boxes/__init__.py index c3a894a..ace1093 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -401,25 +401,9 @@ class Boxes: self.surface.flush() self.surface.finish() - svg = svgutil.SVGFile(self.output) svg.getEnvelope() svg.rewriteViewPort() - return - f = open(self.output, "r+") - s = f.read(1024) - pos = s.find('pt"') - if pos > 0: - f.seek(pos) - f.write("mm") - else: - print("Could not replace pt with mm") - pos = s.find('pt"', pos+3) - if pos > 0: - f.seek(pos) - f.write("mm") - else: - print("Could not replace pt with mm") ############################################################ ### Turtle graphics commands