Commit 4cee810f authored by Ezio Melotti's avatar Ezio Melotti

#16476: merge with 3.2.

parents 1e86d01e b32512ed
...@@ -31,7 +31,8 @@ def main(): ...@@ -31,7 +31,8 @@ def main():
except ValueError as e: except ValueError as e:
raise SystemExit(e) raise SystemExit(e)
with outfile: with outfile:
json.dump(obj, outfile, sort_keys=True, indent=4) json.dump(obj, outfile, sort_keys=True,
indent=4, separators=(',', ': '))
outfile.write('\n') outfile.write('\n')
......
...@@ -96,6 +96,8 @@ Core and Builtins ...@@ -96,6 +96,8 @@ Core and Builtins
Library Library
------- -------
- Issue #16476: Fix json.tool to avoid including trailing whitespace.
- Issue #16549: Make json.tool work again on Python 3 and add tests. - Issue #16549: Make json.tool work again on Python 3 and add tests.
Initial patch by Berker Peksag and Serhiy Storchaka. Initial patch by Berker Peksag and Serhiy Storchaka.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment