From feb5b3d57117c1e47f1292d825d5675e88baa8c9 Mon Sep 17 00:00:00 2001 From: hbc Date: Wed, 25 Feb 2015 09:39:53 +0800 Subject: Convert py3k's map object to tuple explicitly. --- gerber/render/svgwrite_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerber/render/svgwrite_backend.py b/gerber/render/svgwrite_backend.py index a88abfe..f8136e0 100644 --- a/gerber/render/svgwrite_backend.py +++ b/gerber/render/svgwrite_backend.py @@ -109,7 +109,7 @@ class GerberSvgContext(GerberContext): self.dwg.add(acircle) def _render_rectangle(self, rectangle, color): - center = map(mul, rectangle.position, self.scale) + center = tuple(map(mul, rectangle.position, self.scale)) size = tuple(map(mul, (rectangle.width, rectangle.height), map(abs, self.scale))) insert = center[0] - size[0] / 2., center[1] - size[1] / 2. arect = self.dwg.rect(insert=insert, size=size, -- cgit