mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-23 21:18:07 +00:00
Save files with Linux endings
This commit is contained in:
parent
4e9ec4bafa
commit
bbdd370df3
|
@ -14,6 +14,7 @@ def get_file_contents(filename):
|
|||
return contents
|
||||
|
||||
def set_file_contents(filename, data):
|
||||
data = data.replace('\r\n','\n')
|
||||
try:
|
||||
with open(filename, "w") as f:
|
||||
f.write(data)
|
||||
|
|
Loading…
Reference in New Issue
Block a user