commit b30288e0e5427f3568af332f87d95dbdeb00e3eb Author: Matt Traudt sirmatt@ksu.edu Date: Mon Jul 16 14:48:22 2018 -0400
Add indent to state file to make it more human readable --- sbws/util/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbws/util/state.py b/sbws/util/state.py index 58aef38..85e223c 100644 --- a/sbws/util/state.py +++ b/sbws/util/state.py @@ -20,7 +20,7 @@ class State: def _write(self): with FileLock(self._fname): with open(self._fname, 'wt') as fd: - return json.dump(self._state, fd) + return json.dump(self._state, fd, indent=4)
def __len__(self): self._state = self._read()