]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-126731: Update outdated project information in `pprint.pp` doc (#126732)
authorWulian <xiguawulian@gmail.com>
Thu, 14 Nov 2024 04:58:06 +0000 (12:58 +0800)
committerGitHub <noreply@github.com>
Thu, 14 Nov 2024 04:58:06 +0000 (20:58 -0800)
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::