From 5fbcf0f8d1ccc9422f0981865a41e31f50fc3df6 Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Thu, 5 Apr 2018 18:24:34 -0500 Subject: [PATCH] Persistence stores the json file with indentation --- {{cookiecutter.driver_name}}/python-driver/persistence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.driver_name}}/python-driver/persistence.py b/{{cookiecutter.driver_name}}/python-driver/persistence.py index ed65271..8c8703f 100644 --- a/{{cookiecutter.driver_name}}/python-driver/persistence.py +++ b/{{cookiecutter.driver_name}}/python-driver/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