From a01ec6c477a42d4c6286b2d5236b25f1a29c8e5b Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Sun, 7 Jan 2024 01:54:09 +0300 Subject: [PATCH] tools/compare: when dumping json, pretty-print it It's rather completely non-human-readable otherwise. I can't imagine the filesize really matters, and if it does, it should just be compressed later on. --- tools/compare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/compare.py b/tools/compare.py index 3cc9e5eb4a..7572520cc0 100755 --- a/tools/compare.py +++ b/tools/compare.py @@ -327,7 +327,7 @@ def main(): # Optionally, diff and output to JSON if args.dump_to_json is not None: with open(args.dump_to_json, "w") as f_json: - json.dump(diff_report, f_json) + json.dump(diff_report, f_json, indent=1) class TestParser(unittest.TestCase):