mirror of
https://github.com/elliotnunn/powermac-rom.git
synced 2025-01-17 15:30:30 +00:00
Fix: ensure that files end up with CR line endings
This commit is contained in:
parent
933bd48f01
commit
b1d95b5928
@ -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 + '~')
|
||||
|
Loading…
x
Reference in New Issue
Block a user