mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Prettify JSON dump
This commit is contained in:
parent
f3492149c6
commit
79e33ff2da
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user