Commit 2d48fab7 authored by AnimeGitB's avatar AnimeGitB Committed by Luke H-W
Browse files

Stop language linter from fighting the main linter on \n

parent c6244794
......@@ -30,6 +30,7 @@ class JsonHelpers:
def save(filename: str, data: dict) -> None:
with open(filename, 'w', encoding='utf-8', newline='\n') as file:
json.dump(data, file, ensure_ascii=False, indent=INDENT)
file.write('\n') # json.dump doesn't terminate last line
@staticmethod
def flatten(data: dict, prefix='') -> dict:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment