#16333: fix example in docstring.

This commit is contained in:
Ezio Melotti 2012-11-29 00:45:22 +02:00
parent 100314427a
commit 9f94b6dc4b

View file

@ -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