From 1d8c9eaf12a7ca58292bde37ca7b1bf9ec6a2460 Mon Sep 17 00:00:00 2001 From: rlx Date: Wed, 13 Jan 2016 13:58:33 +0530 Subject: [PATCH] update json formatting for ui settings --- oml/pdict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oml/pdict.py b/oml/pdict.py index 020d5a4..0ee9377 100644 --- a/oml/pdict.py +++ b/oml/pdict.py @@ -18,7 +18,7 @@ class pdict(dict): def _save(self): if self._path: with open(self._path, 'w') as fd: - json.dump(self, fd, indent=1) + json.dump(self, fd, indent=4, sort_keys=True) def get(self, key, default=None): if default == None and self._defaults: