Merge pull request #1044 from googan-star/develop

Prettify settings JSON dump
This commit is contained in:
Micah Lee 2019-10-12 23:56:43 -04:00 committed by GitHub
commit fdb56f3c62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,7 @@ class Settings(object):
Save settings to file.
"""
self.common.log('Settings', 'save')
open(self.filename, 'w').write(json.dumps(self._settings))
open(self.filename, 'w').write(json.dumps(self._settings, indent=2))
self.common.log('Settings', 'save', 'Settings saved in {}'.format(self.filename))
def get(self, key):