[Python-checkins] Fixes a typo in importlib.metadata. (GH-23921) (#24030)

warsaw webhook-mailer at python.org
Thu Dec 31 15:27:28 EST 2020

commit: 82f24ff344056198ff283039c3e9fedac1d7fc2d
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: warsaw <barry at python.org>
date: 2020-12-31T12:27:04-08:00

Fixes a typo in importlib.metadata. (GH-23921) (#24030)

Signed-off-by: Tao He <sighingnow at gmail.com>
(cherry picked from commit 3631d6deab064de0bb286ef2943885dca3c3075e)

Co-authored-by: Tao He <sighingnow at gmail.com>

Co-authored-by: Tao He <sighingnow at gmail.com>

M Doc/library/importlib.metadata.rst

diff --git a/Doc/library/importlib.metadata.rst b/Doc/library/importlib.metadata.rst
index 15e58b860d97d..c8b4d4173de03 100644
--- a/Doc/library/importlib.metadata.rst
+++ b/Doc/library/importlib.metadata.rst
@@ -198,9 +198,9 @@ Thus, an alternative way to get the version number is through the
 There are all kinds of additional metadata available on the ``Distribution``
-    >>> d.metadata['Requires-Python']  # doctest: +SKIP
+    >>> dist.metadata['Requires-Python']  # doctest: +SKIP
     '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*'
-    >>> d.metadata['License']  # doctest: +SKIP
+    >>> dist.metadata['License']  # doctest: +SKIP
 The full set of available metadata is not described here.  See :pep:`566`

More information about the Python-checkins mailing list