We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63563b2 commit 5ef90ecCopy full SHA for 5ef90ec
Doc/library/pprint.rst
@@ -218,7 +218,7 @@ let's fetch information about a project from `PyPI <https://pypi.org>`_::
218
>>> import pprint
219
>>> from urllib.request import urlopen
220
>>> with urlopen('https://pypi.org/pypi/sampleproject/json') as resp:
221
- project_info = json.loads(resp.read())
+ project_info = json.load(resp)
222
223
In its basic form, :func:`pprint` shows the whole object::
224
0 commit comments