mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-09 18:05:05 -04:00
Merge pull request #1044 from googan-star/develop
Prettify settings JSON dump
This commit is contained in:
commit
fdb56f3c62
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue