Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
def6ee59
Commit
def6ee59
authored
Nov 29, 2012
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#16476: Fix json.tool to avoid including trailing whitespace.
parent
d8feba90
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
Lib/json/tests/test_tool.py
Lib/json/tests/test_tool.py
+8
-8
Lib/json/tool.py
Lib/json/tool.py
+2
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/json/tests/test_tool.py
View file @
def6ee59
Lib/json/tool.py
View file @
def6ee59
...
...
@@ -31,7 +31,8 @@ def main():
except
ValueError
,
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
'
)
...
...
Misc/NEWS
View file @
def6ee59
...
...
@@ -154,6 +154,8 @@ Core and Builtins
Library
-------
-
Issue
#
16476
:
Fix
json
.
tool
to
avoid
including
trailing
whitespace
.
-
Issue
#
1160
:
Fix
compiling
large
regular
expressions
on
UCS2
builds
.
Patch
by
Serhiy
Storchaka
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment