I\'m using Intellij IDEA 14 on Windows and Git as VCS on Unix server.
The line separator in Windows is CLRF (\\r\\n) and LF (\\n) in Unix.
In Git, I\'m
Create parser.py in the same dir.
Change the name and run.
Enjoy))
with open('./file_to_fix.py', 'r') as f:
a = f.read()
with open('./file_to_fix.py', 'w') as f:
# for i in a.split('\r\n'):
# f.write(i)
aa = a.replace('\r\n', '\n')
f.write(aa)