summaryrefslogtreecommitdiff
path: root/test/fixture/mycompile.py
blob: 555c2c8fae52e3dd34726fb81c2b1e4169538902 (plain)
1
2
3
4
5
6
7
8
import sys
line = ('/*' + sys.argv[1] + '*/\n').encode()
outfile = open(sys.argv[2], 'wb')
for f in sys.argv[3:]:
    infile = open(f, 'rb')
    for l in [l for l in infile.readlines() if l != line]:
        outfile.write(l)
sys.exit(0)