From d7ce97b180d7652b6e55470b3fe755a689b03ba8 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Tue, 7 Apr 2015 18:55:03 -0300 Subject: (really) Fix parsing for AM macros with zero modifiers --- gerber/gerber_statements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerber/gerber_statements.py b/gerber/gerber_statements.py index 1159dc0..c40eb81 100644 --- a/gerber/gerber_statements.py +++ b/gerber/gerber_statements.py @@ -292,7 +292,7 @@ class ADParamStmt(ParamStmt): if modifiers: self.modifiers = [tuple([float(x) for x in m.split("X")]) for m in modifiers.split(",") if len(m)] else: - self.modifiers = [] + self.modifiers = [tuple()] def to_inch(self): self.modifiers = [tuple([inch(x) for x in modifier]) for modifier in self.modifiers] -- cgit