File size: 181 Bytes
24bce15
 
 
 
 
1
2
3
4
5
6
with open('MiSTerFileSystem.asm', 'r+b') as f:
    text = f.read().decode('utf-8')
    text = text.replace('section', ';section')
    f.seek(0, 0)
    f.write(text.encode('utf-8'))