https://github.com/python/cpython/commit/75d643166c967b8bac3e25b537e5fe3c71304b33
commit: 75d643166c967b8bac3e25b537e5fe3c71304b33
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: hauntsaninja <[email protected]>
date: 2024-11-14T05:04:03Z
summary:

[3.13] gh-126731: Update outdated project information in `pprint.pp` doc 
(GH-126732) (#126818)

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

Co-authored-by: Wulian <[email protected]>

files:
M Doc/library/pprint.rst

diff --git a/Doc/library/pprint.rst b/Doc/library/pprint.rst
index 1b3498e51f766d..2985f31bacb47a 100644
--- a/Doc/library/pprint.rst
+++ b/Doc/library/pprint.rst
@@ -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::

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to