X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=packages%2Fsma-edge.py;h=fb4d5a566e2213d521f5dc0518717bc612ffad0f;hb=3034dc83f6095f1df20523b07cdba7f252341c3f;hp=001b20e1f072698553734bf800374d91a10a544a;hpb=14289403c8e193e10a174fde02030028b6f7bbb1;p=hw%2Faltusmetrum diff --git a/packages/sma-edge.py b/packages/sma-edge.py old mode 100755 new mode 100644 index 001b20e..fb4d5a5 --- a/packages/sma-edge.py +++ b/packages/sma-edge.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/python3 # Copyright 2007 by Bdale Garbee . GPLv2 # # Program to emit PCB footprint for edge-launch SMA connector @@ -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 "sma-edge" "" "" 0 0 0 0 0 0 0x0]' -print "(" +print('Element[0x0 "sma-edge" "" "" 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[',\ (-PinSpacing - GndWidth/2), \ (GndWidth/2), \ (-PinSpacing - GndWidth/2), \ @@ -38,8 +38,8 @@ print ' Pad[',\ (GndWidth), \ 0, \ (GndWidth + 600), \ - '"pin2"', '"2"', '"onsolder,square,nopaste"]' -print ' Pad[',\ + '"pin2"', '"2"', '"onsolder,square,nopaste"]') +print(' Pad[',\ 0, \ (PinWidth/2), \ 0, \ @@ -47,8 +47,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), \ @@ -56,8 +56,8 @@ print ' Pad[',\ (GndWidth), \ 0, \ (GndWidth + 600), \ - '"pin2"', '"2"', '"square,nopaste"]' -print ' Pad[',\ + '"pin2"', '"2"', '"square,nopaste"]') +print(' Pad[',\ (PinSpacing + GndWidth/2), \ (GndWidth/2), \ (PinSpacing + GndWidth/2), \ @@ -65,6 +65,6 @@ print ' Pad[',\ (GndWidth), \ 0, \ (GndWidth + 600), \ - '"pin2"', '"2"', '"onsolder,square,nopaste"]' + '"pin2"', '"2"', '"onsolder,square,nopaste"]') -print ")" +print(")")