mirror of
https://github.com/python/cpython.git
synced 2025-11-13 23:46:24 +00:00
#16333: fix example in docstring.
This commit is contained in:
parent
100314427a
commit
9f94b6dc4b
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue