removeConneries.py 277 Bytes
Newer Older
Guillaume GENESTIER's avatar
Guillaume GENESTIER committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
import sys

i=True
for fil in sys.argv:
    print(fil)
    if i:
        i=False
        continue
    toRead=open(fil,'r')
    content=toRead.read()
    toRead.close()
    toWrite=open(fil,'w')
    toWrite.write(content.replace("{","def ").replace("}",""))
    toWrite.close()