From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 31 Dec 2020 20:27:17 +0000 (-0800) Subject: Fixes a typo in importlib.metadata. (GH-23921) (#24029) X-Git-Tag: v3.9.2rc1~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=55fadffb0b37480b44ae515a82f87d8fa298c173;p=thirdparty%2FPython%2Fcpython.git Fixes a typo in importlib.metadata. (GH-23921) (#24029) Signed-off-by: Tao He (cherry picked from commit 3631d6deab064de0bb286ef2943885dca3c3075e) Co-authored-by: Tao He Co-authored-by: Tao He --- diff --git a/Doc/library/importlib.metadata.rst b/Doc/library/importlib.metadata.rst index 21da143f3beb..0dd3daaa5489 100644 --- a/Doc/library/importlib.metadata.rst +++ b/Doc/library/importlib.metadata.rst @@ -206,9 +206,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`