summaryrefslogtreecommitdiffstats
path: root/Doc/library/importlib.metadata.rst
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-05-26 14:30:52 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2019-05-26 14:30:52 (GMT)
commit22ccb0b4902137275960c008ef77b88fa82729ce (patch)
tree6dd83e267baf8acd5205298ce282ed510583574c /Doc/library/importlib.metadata.rst
parent180dc1b0f4a57c3f66351568ae8488fa8576d7f0 (diff)
downloadcpython-22ccb0b4902137275960c008ef77b88fa82729ce.zip
cpython-22ccb0b4902137275960c008ef77b88fa82729ce.tar.gz
cpython-22ccb0b4902137275960c008ef77b88fa82729ce.tar.bz2
Fix highlighting in importlib.metadata docs (GH-13575)
Diffstat (limited to 'Doc/library/importlib.metadata.rst')
-rw-r--r--Doc/library/importlib.metadata.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/importlib.metadata.rst b/Doc/library/importlib.metadata.rst
index 3d10b5a..2126498 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