gh-126731: Update outdated project information in `pprint.pp` doc (#126732)

This commit is contained in:
Wulian 2024-11-14 12:58:06 +08:00 committed by GitHub
parent 4ae50615d2
commit 6a93a1adbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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