mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
fix: convert asm from CRLF to LF for less bugs
This commit is contained in:
@@ -138,4 +138,13 @@ def hexdump(data, addr = 0, num = 0):
|
||||
line += '%c' % c
|
||||
|
||||
lines.append(line)
|
||||
return '\n'.join(lines)
|
||||
return '\n'.join(lines)
|
||||
|
||||
|
||||
def file_to_lf(filename):
|
||||
with open(filename, 'rb') as f:
|
||||
data = f.read()
|
||||
|
||||
data = data.replace(b'\r\n', b'\n')
|
||||
with open(filename, 'wb') as f:
|
||||
f.write(data)
|
||||
|
||||
Reference in New Issue
Block a user