Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1003144 commit 9f94b6dCopy full SHA for 9f94b6d
1 file changed
Lib/json/__init__.py
@@ -39,8 +39,7 @@
39
Pretty printing::
40
41
>>> import json
42
- >>> s = json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4)
43
- >>> print('\n'.join([l.rstrip() for l in s.splitlines()]))
+ >>> print(json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4))
44
{
45
"4": 5,
46
"6": 7
0 commit comments