From 27c87d56bb7197cd4a2c679c9f3c58f00d6cd3c1 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 29 Oct 2016 13:13:16 +0100 Subject: [PATCH] [Config] Sort the json keys in conf files --- deluge/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/config.py b/deluge/config.py index 9fe700159..6066f8bf1 100644 --- a/deluge/config.py +++ b/deluge/config.py @@ -460,7 +460,7 @@ what is currently in the config and it could not convert the value log.debug("Saving new config file %s", filename + ".new") with open(filename + ".new", "wb") as _file: json.dump(self.__version, _file, indent=2) - json.dump(self.__config, _file, indent=2) + json.dump(self.__config, _file, indent=2, sort_keys=True) _file.flush() os.fsync(_file.fileno()) except IOError as ex: