mirror of
https://github.com/mynodebtc/mynode.git
synced 2025-01-11 19:30:11 +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
|
return contents
|
||||||
|
|
||||||
def set_file_contents(filename, data):
|
def set_file_contents(filename, data):
|
||||||
|
data = data.replace('\r\n','\n')
|
||||||
try:
|
try:
|
||||||
with open(filename, "w") as f:
|
with open(filename, "w") as f:
|
||||||
f.write(data)
|
f.write(data)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user