3
0
Fork 0
forked from mirrors/nixpkgs

scripts.pluginupdate: write final newline

json.dump does not write any newline, so the final newline in the file
is missing.
This commit is contained in:
Flakebi 2021-03-22 22:56:44 +01:00
parent 188b23fb32
commit 04184cd64f
No known key found for this signature in database
GPG key ID: 38E7ED984D7DCD02

View file

@ -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)