summaryrefslogtreecommitdiffstats
path: root/libtoprammer/chips
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2013-10-06 21:17:02 +0200
committerMichael Buesch <m@bues.ch>2013-10-06 21:17:02 +0200
commit9e52d6ccc652156c34f69b0c8e614900f7bbd0a9 (patch)
tree3524f7f02fbd3217b18255e00f472aba8664cb8d /libtoprammer/chips
parent7d4328e1ba12f9f49d179ab286136d42a80f5dae (diff)
downloadtoprammer-9e52d6ccc652156c34f69b0c8e614900f7bbd0a9.tar.xz
toprammer-9e52d6ccc652156c34f69b0c8e614900f7bbd0a9.zip
makeSip6: Remove clear
Signed-off-by: Michael Buesch <m@bues.ch>
Diffstat (limited to 'libtoprammer/chips')
-rw-r--r--libtoprammer/chips/microchip8/makeSip6.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/libtoprammer/chips/microchip8/makeSip6.py b/libtoprammer/chips/microchip8/makeSip6.py
index efe1bfe..8a72d0c 100644
--- a/libtoprammer/chips/microchip8/makeSip6.py
+++ b/libtoprammer/chips/microchip8/makeSip6.py
@@ -26,27 +26,6 @@ import re
import sys
import os
-def clear():
- inputFileName = '__init__.py'
- tmpFileName = 'tmp'
- fin = open(inputFileName)
- ftmp = open(tmpFileName, 'w')
- isToBeRemoved = False
- for line in fin:
- if isToBeRemoved:
- matchObj = re.match('.*(pic\w+).*', line)
- if matchObj:
- print('removing file {}'.format(matchObj.group(1)))
- os.remove('{}.py'.format(matchObj.group(1)))
- else:
- ftmp.write(line)
- matchObj = re.match('#.*', line)
- if matchObj:
- isToBeRemoved = True
- fin.close()
- ftmp.close()
- os.rename(tmpFileName, inputFileName)
-
def substitute(input, oldSocket, newSocket):
input = re.sub('(^\s*packages).*', lambda m:'{} = (("DIP10", ""), ),'.format(m.group(1)), input)
input = re.sub('(^\s*chipPackage).*', lambda m:'{} = "DIP10",'.format(m.group(1)), input)
@@ -89,7 +68,6 @@ def makeSip():
print ('{} - {}'.format(item[0], item[1]))
def main(argv):
- #clear()
makeSip()
if __name__ == "__main__":
bues.ch cgit interface