More robust writing, even for bad files. Remove accidentally added imports

This commit is contained in:
Garret Fick 2016-03-05 16:26:30 +08:00
parent 0f1d1c3a29
commit 97924d188b
2 changed files with 3 additions and 2 deletions

View file

@ -18,8 +18,6 @@ import math
from operator import add, sub
from .utils import validate_coordinates, inch, metric, rotate_point, nearly_equal
from jsonpickle.util import PRIMITIVES
from __builtin__ import False
class Primitive(object):

View file

@ -384,6 +384,9 @@ class Rs274xContext(GerberContext):
self.header.append(aperdef)
# Store the dcode and the original so we can check if it really is the same
# If it didn't have a postition, set it to 0, 0
if amgroup.position == None:
amgroup.position = (0, 0)
macro = (aperdef, amgroup)
if macroinfo: