convert Python footprint generators to Python 3
[hw/altusmetrum] / packages / wire-ant.py
old mode 100755 (executable)
new mode 100644 (file)
index f7b52f6..6cac18c
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/python3
 # Copyright 2014 by Bdale Garbee <bdale@gag.com>.  GPLv2
 #
 # Program to emit PCB footprint for edge-launch wire antenna
@@ -13,15 +13,15 @@ PinSpacing = PinWidth / 2 + 4000
 
 import sys
 
-print '# author: Bdale Garbee'
-print '# email: bdale@gag.com'
-print '# dist-license: GPL 2'
-print '# use-license: unlimited'
+print('# author: Bdale Garbee')
+print('# email: bdale@gag.com')
+print('# dist-license: GPL 3')
+print('# use-license: unlimited')
 
-print 'Element[0x0 "wire-ant" "" "" 0 0 0 0 0 0 0x0]'
-print "("
+print('Element[0x0 "wire-ant" "" "" 0 0 0 0 0 0 0x0]')
+print("(")
 
-print '   Pad[',\
+print('   Pad[',\
        (-PinSpacing - GndWidth/2), \
        (GndWidth/2), \
        (-PinSpacing - GndWidth/2), \
@@ -29,8 +29,8 @@ print '   Pad[',\
        (GndWidth), \
        0, \
        (GndWidth + 600), \
-       '"pin2"', '"2"', '"square,nopaste"]'
-print '   Pad[',\
+       '"pin2"', '"2"', '"square,nopaste"]')
+print('   Pad[',\
        0, \
        (PinWidth/2), \
        0, \
@@ -38,8 +38,8 @@ print '   Pad[',\
        (PinWidth), \
        0, \
        (PinWidth + 600), \
-       '"pin1"', '"1"', '"square,nopaste"]'
-print '   Pad[',\
+       '"pin1"', '"1"', '"square,nopaste"]')
+print('   Pad[',\
        (PinSpacing + GndWidth/2), \
        (GndWidth/2), \
        (PinSpacing + GndWidth/2), \
@@ -47,6 +47,6 @@ print '   Pad[',\
        (GndWidth), \
        0, \
        (GndWidth + 600), \
-       '"pin2"', '"2"', '"square,nopaste"]'
+       '"pin2"', '"2"', '"square,nopaste"]')
 
-print ")"
+print(")")