From 04184cd64f5c38cb5a9f882d2026f8663e6742c8 Mon Sep 17 00:00:00 2001 From: Flakebi Date: Mon, 22 Mar 2021 22:56:44 +0100 Subject: [PATCH] scripts.pluginupdate: write final newline json.dump does not write any newline, so the final newline in the file is missing. --- maintainers/scripts/pluginupdate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/maintainers/scripts/pluginupdate.py b/maintainers/scripts/pluginupdate.py index 9ac1ccffb789..00a205313be8 100644 --- a/maintainers/scripts/pluginupdate.py +++ b/maintainers/scripts/pluginupdate.py @@ -416,6 +416,7 @@ def rewrite_input( } with open(deprecated, "w") as f: json.dump(deprecations, f, indent=4, sort_keys=True) + f.write("\n") lines = sorted(lines, key=str.casefold)