Fix for py3

This commit is contained in:
Paulo Henrique Silva 2015-03-05 14:58:36 -03:00
parent a13b981c1c
commit adc1ff6d72
2 changed files with 2 additions and 2 deletions

View file

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

View file

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