Skip to content

Commit

Permalink
[3.13] gh-126731: Update outdated project information in pprint.pp
Browse files Browse the repository at this point in the history
…doc (GH-126732) (#126818)

gh-126731: Update outdated project information in `pprint.pp` doc (GH-126732)
(cherry picked from commit 6a93a1a)

Co-authored-by: Wulian <[email protected]>
  • Loading branch information
miss-islington and Wulian233 authored Nov 14, 2024
1 parent 3b49b16 commit 75d6431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/pprint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down

0 comments on commit 75d6431

Please sign in to comment.