summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorTao He <sighingnow@gmail.com>2020-12-31 19:37:53 (GMT)
committerGitHub <noreply@github.com>2020-12-31 19:37:53 (GMT)
commit3631d6deab064de0bb286ef2943885dca3c3075e (patch)
tree0fab40c5f7377a43f299bd9eea43b453618d6ca5 /Doc/library
parenta6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743 (diff)
downloadcpython-3631d6deab064de0bb286ef2943885dca3c3075e.zip
cpython-3631d6deab064de0bb286ef2943885dca3c3075e.tar.gz
cpython-3631d6deab064de0bb286ef2943885dca3c3075e.tar.bz2
Fixes a typo in importlib.metadata. (#23921)
Signed-off-by: Tao He <sighingnow@gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/importlib.metadata.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/importlib.metadata.rst b/Doc/library/importlib.metadata.rst
index 858ed0a..7f154ea 100644
--- a/Doc/library/importlib.metadata.rst
+++ b/Doc/library/importlib.metadata.rst
@@ -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`