mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +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::
|
||||
|
||||
>>> import json
|
||||
>>> s = json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4)
|
||||
>>> print('\n'.join([l.rstrip() for l in s.splitlines()]))
|
||||
>>> print(json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4))
|
||||
{
|
||||
"4": 5,
|
||||
"6": 7
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue