-#!/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
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), \
(GndWidth), \
0, \
(GndWidth + 600), \
- '"pin2"', '"2"', '"square,nopaste"]'
-print ' Pad[',\
+ '"pin2"', '"2"', '"square,nopaste"]')
+print(' Pad[',\
0, \
(PinWidth/2), \
0, \
(PinWidth), \
0, \
(PinWidth + 600), \
- '"pin1"', '"1"', '"square,nopaste"]'
-print ' Pad[',\
+ '"pin1"', '"1"', '"square,nopaste"]')
+print(' Pad[',\
(PinSpacing + GndWidth/2), \
(GndWidth/2), \
(PinSpacing + GndWidth/2), \
(GndWidth), \
0, \
(GndWidth + 600), \
- '"pin2"', '"2"', '"square,nopaste"]'
+ '"pin2"', '"2"', '"square,nopaste"]')
-print ")"
+print(")")