Kaydet (Commit) 9f94b6dc authored tarafından Ezio Melotti's avatar Ezio Melotti

#16333: fix example in docstring.

üst 10031442
...@@ -39,8 +39,7 @@ Compact encoding:: ...@@ -39,8 +39,7 @@ Compact encoding::
Pretty printing:: Pretty printing::
>>> import json >>> import json
>>> s = json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4) >>> print(json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4))
>>> print('\n'.join([l.rstrip() for l in s.splitlines()]))
{ {
"4": 5, "4": 5,
"6": 7 "6": 7
......
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