Fix for py3
This commit is contained in:
parent
a13b981c1c
commit
adc1ff6d72
2 changed files with 2 additions and 2 deletions
|
|
@ -108,7 +108,7 @@ class Scanner:
|
|||
|
||||
def print_instructions(instructions):
|
||||
for opcode, argument in instructions:
|
||||
print "%s %s" % (OpCode.str(opcode), str(argument) if argument is not None else "")
|
||||
print("%s %s" % (OpCode.str(opcode), str(argument) if argument is not None else ""))
|
||||
|
||||
|
||||
def read_macro(macro):
|
||||
|
|
|
|||
|
|
@ -460,7 +460,7 @@ class GerberParser(object):
|
|||
if primitive is not None:
|
||||
# XXX: just to make it easy to spot
|
||||
if isinstance(primitive, type([])):
|
||||
print primitive[0].to_gerber()
|
||||
print(primitive[0].to_gerber())
|
||||
else:
|
||||
primitive.position = (x, y)
|
||||
primitive.level_polarity = self.level_polarity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue