Skip to content

Commit 22ccb0b

Browse files
asottilejaraco
authored andcommitted
Fix highlighting in importlib.metadata docs (GH-13575)
1 parent 180dc1b commit 22ccb0b

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

Doc/library/importlib.metadata.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ Overview
3232

3333
Let's say you wanted to get the version string for a package you've installed
3434
using ``pip``. We start by creating a virtual environment and installing
35-
something into it::
35+
something into it:
3636

37-
.. highlight:: none
37+
.. code-block:: shell-session
3838
3939
$ python3 -m venv example
4040
$ source example/bin/activate
4141
(example) $ pip install wheel
4242
43-
You can get the version string for ``wheel`` by running the following::
43+
You can get the version string for ``wheel`` by running the following:
4444

45-
.. highlight:: none
45+
.. code-block:: pycon
4646
4747
(example) $ python
4848
>>> from importlib.metadata import version # doctest: +SKIP

Doc/tools/susp-ignored.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,5 @@ whatsnew/3.7,,::,error::BytesWarning
350350
whatsnew/changelog,,::,error::BytesWarning
351351
whatsnew/changelog,,::,default::BytesWarning
352352
whatsnew/changelog,,::,default::DeprecationWarning
353-
library/importlib.metadata,,.. highlight:,.. highlight:: none
354353
library/importlib.metadata,,:main,"EntryPoint(name='wheel', value='wheel.cli:main', group='console_scripts')"
355354
library/importlib.metadata,,`,of directories ``path`` (defaults to sys.path).

0 commit comments

Comments
 (0)