summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-23 13:42:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-23 14:00:38 +0100
commitc9303648f84ed515ef77df1bcaf4fee36f32eaee (patch)
tree1de1a3649e826f2a19384062fe813d2efcdb622f /scripts
parenta0d120dd56330a7e0f5705812f86736fffc83fa7 (diff)
downloadpoky-c9303648f84ed515ef77df1bcaf4fee36f32eaee.tar.gz
scripts/patchreview: Make json output human parsable
Sort dict keys in the json output and use tab spacing. This means when commited into git, the diffs are human readable but it is more compact filesize than space indentation. (From OE-Core rev: bde2ecb203d8a1a29715c70ca3ded382982390cf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/contrib/patchreview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/contrib/patchreview.py b/scripts/contrib/patchreview.py
index 002991c559..85d2169ad1 100755
--- a/scripts/contrib/patchreview.py
+++ b/scripts/contrib/patchreview.py
@@ -232,7 +232,7 @@ if __name__ == "__main__":
232 row['malformed-sob'] += 1 232 row['malformed-sob'] += 1
233 233
234 data.append(row) 234 data.append(row)
235 json.dump(data, open(args.json, "w")) 235 json.dump(data, open(args.json, "w"), sort_keys=True, indent="\t")
236 236
237 if args.histogram: 237 if args.histogram:
238 print() 238 print()