From 0249503d6c84dc6309d83c666b762c4a38f71a33 Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Thu, 5 Apr 2018 18:24:21 -0500 Subject: [PATCH] Persistence stores the json file with indentation --- persistence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/persistence.py b/persistence.py index ed65271..8c8703f 100644 --- a/persistence.py +++ b/persistence.py @@ -16,6 +16,6 @@ def store(persist_obj, filename="persist.json"): """Store the persisting settings into the specified file.""" try: with open(filename, 'w') as persist_file: - return json.dump(persist_obj, persist_file) + return json.dump(persist_obj, persist_file, indent=4) except Exception: return False