replace_tabs.py (182B)
1 file = input() 2 lines = [] 3 4 with open(file,'r') as f: 5 lines = f.readlines() 6 7 with open(file,'w') as f: 8 for line in lines: 9 res = line.expandtabs() 10 f.write(res)
blogPersonal blog | |
| git clone git://git.laack.co/blog.git | |
| Log | Files | Refs |