Fix: ensure that files end up with CR line endings

This commit is contained in:
Elliot Nunn 2018-07-03 11:38:57 +08:00
parent 933bd48f01
commit b1d95b5928
1 changed files with 2 additions and 1 deletions

View File

@ -133,4 +133,5 @@ for path in fnames:
o.write(l)
break
os.rename(path + '~', path)
open(path, 'wb').write(open(path + '~', 'rb').read().replace(b'\n', b'\r'))
os.unlink(path + '~')