[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Add indent to state file to make it more human readable
commit b30288e0e5427f3568af332f87d95dbdeb00e3eb
Author: Matt Traudt <sirmatt@xxxxxxx>
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()
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits