#16476: Fix json.tool to avoid including trailing whitespace.
This commit is contained in:
parent
057bcb4c6c
commit
b32512ed9a
|
@ -31,7 +31,8 @@ def main():
|
|||
except ValueError as e:
|
||||
raise SystemExit(e)
|
||||
with outfile:
|
||||
json.dump(obj, outfile, sort_keys=True, indent=4)
|
||||
json.dump(obj, outfile, sort_keys=True,
|
||||
indent=4, separators=(',', ': '))
|
||||
outfile.write('\n')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue