add customary EOF \n to written JSON
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
parent
58f2f38546
commit
b4ba27dda0
|
@ -251,7 +251,7 @@ def write_new_config_to_filename(config: Message, filename: str, inject: bool =
|
||||||
else:
|
else:
|
||||||
if filename[-5:] == '.json':
|
if filename[-5:] == '.json':
|
||||||
with open(filename, 'w') as file:
|
with open(filename, 'w') as file:
|
||||||
file.write(MessageToJson(config))
|
file.write(f'{MessageToJson(config)}\n')
|
||||||
else:
|
else:
|
||||||
binary = storage.serialize_config_with_footer(config)
|
binary = storage.serialize_config_with_footer(config)
|
||||||
with open(filename, 'wb') as file:
|
with open(filename, 'wb') as file:
|
||||||
|
|
Loading…
Reference in New Issue