]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixes a typo in importlib.metadata. (#23921)
authorTao He <sighingnow@gmail.com>
Thu, 31 Dec 2020 19:37:53 +0000 (03:37 +0800)
committerGitHub <noreply@github.com>
Thu, 31 Dec 2020 19:37:53 +0000 (11:37 -0800)
Signed-off-by: Tao He <sighingnow@gmail.com>
Doc/library/importlib.metadata.rst

index 858ed0a4838742f65217563c42069a169f8cea1c..7f154ea02cc4f2d002323b508e906fea4e71e9d0 100644 (file)
@@ -207,9 +207,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`