]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixes a typo in importlib.metadata. (GH-23921) (#24030)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 31 Dec 2020 20:27:04 +0000 (12:27 -0800)
committerGitHub <noreply@github.com>
Thu, 31 Dec 2020 20:27:04 +0000 (12:27 -0800)
Signed-off-by: Tao He <sighingnow@gmail.com>
(cherry picked from commit 3631d6deab064de0bb286ef2943885dca3c3075e)

Co-authored-by: Tao He <sighingnow@gmail.com>
Co-authored-by: Tao He <sighingnow@gmail.com>
Doc/library/importlib.metadata.rst

index 15e58b860d97d07ea1df6739fd6568141f053fa8..c8b4d4173de03c215b49d8df552d43bd8bbc5888 100644 (file)
@@ -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``
 instance::
 
-    >>> 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
     'MIT'
 
 The full set of available metadata is not described here.  See :pep:`566`