diff options
-rw-r--r-- | Lib/json/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/json/__init__.py b/Lib/json/__init__.py index 7314cb4..3b23224 100644 --- a/Lib/json/__init__.py +++ b/Lib/json/__init__.py @@ -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 |