From 2d48fab79991e878ee4918c4062b0cfde0a8dd38 Mon Sep 17 00:00:00 2001 From: AnimeGitB Date: Wed, 10 Aug 2022 16:41:19 +0930 Subject: [PATCH] Stop language linter from fighting the main linter on \n --- manage_languages.py | 1 + 1 file changed, 1 insertion(+) diff --git a/manage_languages.py b/manage_languages.py index 2882f18d3..412c6101d 100644 --- a/manage_languages.py +++ b/manage_languages.py @@ -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: