Skip to content

Commit

Permalink
tools/compare: when dumping json, pretty-print it
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LebedevRI committed Jan 7, 2024
1 parent e61e332 commit a01ec6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a01ec6c

Please sign in to comment.