From 2b1adf26725d9bfdcbd6d5289acdb7717451e4b2 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Sun, 6 Oct 2013 21:07:30 +0200 Subject: Fix makeSip6.py Signed-off-by: Michael Buesch --- libtoprammer/chips/microchip8/makeSip6.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libtoprammer/chips/microchip8') diff --git a/libtoprammer/chips/microchip8/makeSip6.py b/libtoprammer/chips/microchip8/makeSip6.py index e7f549f..59e8627 100644 --- a/libtoprammer/chips/microchip8/makeSip6.py +++ b/libtoprammer/chips/microchip8/makeSip6.py @@ -40,7 +40,7 @@ def clear(): os.remove('{}.py'.format(matchObj.group(1))) else: ftmp.write(line) - matchObj = re.match('#do not edit the text below this line.*', line) + matchObj = re.match('#.*', line) if matchObj: isToBeRemoved = True fin.close() @@ -86,8 +86,8 @@ def makeSip(): print ('{} - {}'.format(item[0], item[1])) def main(argv): - clear() - # makeSip() + #clear() + makeSip() if __name__ == "__main__": - xit(main(sys.argv)) + exit(main(sys.argv)) -- cgit v1.2.3