mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
#16476: merge with 3.2.
This commit is contained in:
commit
4cee810f5d
3 changed files with 12 additions and 9 deletions
|
|
@ -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')
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -96,6 +96,8 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #16476: Fix json.tool to avoid including trailing whitespace.
|
||||
|
||||
- Issue #16549: Make json.tool work again on Python 3 and add tests.
|
||||
Initial patch by Berker Peksag and Serhiy Storchaka.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue