Skip to content

Commit

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

(cherry picked from commit 6a93a1a)

Co-authored-by: Wulian <[email protected]>
  • Loading branch information
Wulian233 authored and miss-islington committed Nov 14, 2024
1 parent 73dedbd commit 836e0f1
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 836e0f1

Please sign in to comment.