mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
[Config] Sort the json keys in conf files
This commit is contained in:
parent
72c588ad33
commit
27c87d56bb
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
log.debug("Saving new config file %s", filename + ".new")
|
||||||
with open(filename + ".new", "wb") as _file:
|
with open(filename + ".new", "wb") as _file:
|
||||||
json.dump(self.__version, _file, indent=2)
|
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()
|
_file.flush()
|
||||||
os.fsync(_file.fileno())
|
os.fsync(_file.fileno())
|
||||||
except IOError as ex:
|
except IOError as ex:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue