mirror of https://github.com/python/cpython
gh-126731: Update outdated project information in `pprint.pp` doc (#126732)
This commit is contained in:
parent
4ae50615d2
commit
6a93a1adbb
|
@ -267,7 +267,7 @@ let's fetch information about a project from `PyPI <https://pypi.org>`_::
|
|||
>>> import json
|
||||
>>> import pprint
|
||||
>>> from urllib.request import urlopen
|
||||
>>> with urlopen('https://pypi.org/pypi/sampleproject/json') as resp:
|
||||
>>> with urlopen('https://pypi.org/pypi/sampleproject/1.2.0/json') as resp:
|
||||
... project_info = json.load(resp)['info']
|
||||
|
||||
In its basic form, :func:`~pprint.pp` shows the whole object::
|
||||
|
|
Loading…
Reference in New Issue