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

refactor
Garret Fick 2016-03-05 16:26:30 +08:00
rodzic 0f1d1c3a29
commit 97924d188b
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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):

Wyświetl plik

@ -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: