]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-126731: Update outdated project information in `pprint.pp` doc (GH-126732...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 14 Nov 2024 05:08:18 +0000 (06:08 +0100)
committerGitHub <noreply@github.com>
Thu, 14 Nov 2024 05:08:18 +0000 (05:08 +0000)
gh-126731: Update outdated project information in `pprint.pp` doc (GH-126732)
(cherry picked from commit 6a93a1adbb56a64ec6d20e8aab911439998502c9)

Co-authored-by: Wulian <xiguawulian@gmail.com>
Doc/library/pprint.rst

index 1b3498e51f766dd032e2c641d0dff1b2ab11dc87..2985f31bacb47a59c97d9b9f88455f30778cb2a3 100644 (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::