diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-03-05 14:58:36 -0300 |
---|---|---|
committer | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-03-05 14:58:36 -0300 |
commit | adc1ff6d72ac1201517fffcd8e377768be022e91 (patch) | |
tree | 8824004b54c3bd748cbc004ea444b098ff56ca08 | |
parent | a13b981c1c2ea9ede39e9821d9ba818566f044de (diff) | |
download | gerbonara-adc1ff6d72ac1201517fffcd8e377768be022e91.tar.gz gerbonara-adc1ff6d72ac1201517fffcd8e377768be022e91.tar.bz2 gerbonara-adc1ff6d72ac1201517fffcd8e377768be022e91.zip |
Fix for py3
-rw-r--r-- | gerber/am_read.py | 2 | ||||
-rw-r--r-- | gerber/rs274x.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gerber/am_read.py b/gerber/am_read.py index ade4389..9fdd548 100644 --- a/gerber/am_read.py +++ b/gerber/am_read.py @@ -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): diff --git a/gerber/rs274x.py b/gerber/rs274x.py index d2844c9..a3a27e9 100644 --- a/gerber/rs274x.py +++ b/gerber/rs274x.py @@ -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 |