1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-11-21 18:54:20 +01:00

Add indent to the dump for better diff

This commit is contained in:
Satwik 2019-12-23 15:58:25 +05:30
parent ad39ef8625
commit b3387c9dc7

View File

@ -296,7 +296,7 @@ def convert_to_notebook(pre_examples_content, parsed_json, post_examples_content
#pprint.pprint(result, indent=2)
with open(notebook_path, "w") as f:
json.dump(result, f)
json.dump(result, f, indent=2)
with open(fpath, 'r+', encoding="utf-8") as f: