From: Anthony Sottile Date: Sun, 26 May 2019 14:30:52 +0000 (-0700) Subject: Fix highlighting in importlib.metadata docs (GH-13575) X-Git-Tag: v3.8.0b1~202 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22ccb0b4902137275960c008ef77b88fa82729ce;p=thirdparty%2FPython%2Fcpython.git Fix highlighting in importlib.metadata docs (GH-13575) --- diff --git a/Doc/library/importlib.metadata.rst b/Doc/library/importlib.metadata.rst index 3d10b5aeabfd..2126498e728c 100644 --- a/Doc/library/importlib.metadata.rst +++ b/Doc/library/importlib.metadata.rst @@ -32,17 +32,17 @@ Overview Let's say you wanted to get the version string for a package you've installed using ``pip``. We start by creating a virtual environment and installing -something into it:: +something into it: -.. highlight:: none +.. code-block:: shell-session $ python3 -m venv example $ source example/bin/activate (example) $ pip install wheel -You can get the version string for ``wheel`` by running the following:: +You can get the version string for ``wheel`` by running the following: -.. highlight:: none +.. code-block:: pycon (example) $ python >>> from importlib.metadata import version # doctest: +SKIP diff --git a/Doc/tools/susp-ignored.csv b/Doc/tools/susp-ignored.csv index 85ff9d02aeb2..a34524bb673e 100644 --- a/Doc/tools/susp-ignored.csv +++ b/Doc/tools/susp-ignored.csv @@ -350,6 +350,5 @@ whatsnew/3.7,,::,error::BytesWarning whatsnew/changelog,,::,error::BytesWarning whatsnew/changelog,,::,default::BytesWarning whatsnew/changelog,,::,default::DeprecationWarning -library/importlib.metadata,,.. highlight:,.. highlight:: none library/importlib.metadata,,:main,"EntryPoint(name='wheel', value='wheel.cli:main', group='console_scripts')" library/importlib.metadata,,`,of directories ``path`` (defaults to sys.path).