From 949b5552caaa66cd91833b1497664681f63c54dc Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Sun, 26 Jan 2020 21:27:57 +0100 Subject: [PATCH] Sort keys when saving JSON config This helps keeping changes minimal when rewritting from the program. --- toot/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toot/config.py b/toot/config.py index a848d74..6404467 100644 --- a/toot/config.py +++ b/toot/config.py @@ -72,7 +72,7 @@ def load_config(): def save_config(config): with open(CONFIG_FILE, 'w') as f: - return json.dump(config, f, indent=True) + return json.dump(config, f, indent=True, sort_keys=True) def extract_user_app(config, user_id):