Pretty-Print the win_toolchain JSON Output

This makes the file easier to read.

Change-Id: Ie5eac66582bd6f3ce3c31def6f591e001de9a79a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2893667
Auto-Submit: Robert Liao <robliao@chromium.org>
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
changes/67/2893667/2
Robert Liao 4 years ago committed by LUCI CQ
parent 0614591e11
commit f5c054ce53

@ -576,7 +576,7 @@ def main():
os.path.join(abs_toolchain_target_dir, 'sysarm64'),
],
}
data_json = json.dumps(data)
data_json = json.dumps(data, indent=2)
data_path = os.path.join(target_dir, '..', 'data.json')
if not os.path.exists(data_path) or open(data_path).read() != data_json:
with open(data_path, 'w') as f:

Loading…
Cancel
Save