write json files readable
This commit is contained in:
parent
78e180871e
commit
dfe5afb735
@ -39,4 +39,4 @@ class JSONFile(DataFile):
|
|||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
with open(self.filename, "wt") as f:
|
with open(self.filename, "wt") as f:
|
||||||
f.write(json.dumps(self.copy()))
|
f.write(json.dumps(self.copy(), indent=4))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user