Skip to content

Commit 836e0f1

Browse files
Wulian233miss-islington
authored andcommitted
pythongh-126731: Update outdated project information in pprint.pp doc (pythonGH-126732)
(cherry picked from commit 6a93a1a) Co-authored-by: Wulian <[email protected]>
1 parent 73dedbd commit 836e0f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/pprint.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ let's fetch information about a project from `PyPI <https://pypi.org>`_::
267267
>>> import json
268268
>>> import pprint
269269
>>> from urllib.request import urlopen
270-
>>> with urlopen('https://pypi.org/pypi/sampleproject/json') as resp:
270+
>>> with urlopen('https://pypi.org/pypi/sampleproject/1.2.0/json') as resp:
271271
... project_info = json.load(resp)['info']
272272

273273
In its basic form, :func:`~pprint.pp` shows the whole object::

0 commit comments

Comments
 (0)