git @ Cat's Eye Technologies SixtyPical / 8ac5c4b
And what if this Chris Pressey 3 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1818
1919 lines = [line for line in check_output("dcc6502 -o 2061 {}".format(filename), shell=True).split('\n') if line and not line.startswith(';')]
2020 lines = [re.sub(r'\s*\;.*$', '', line) for line in lines]
21 #lines.pop()
21 if "BRK" in lines[-1]:
22 lines.pop()
2223 sys.stdout.write('\n'.join(lines))