]> granicus.if.org Git - python/commitdiff
Fix highlighting in importlib.metadata docs (GH-13575)
authorAnthony Sottile <asottile@umich.edu>
Sun, 26 May 2019 14:30:52 +0000 (07:30 -0700)
committerJason R. Coombs <jaraco@jaraco.com>
Sun, 26 May 2019 14:30:52 +0000 (10:30 -0400)
Doc/library/importlib.metadata.rst
Doc/tools/susp-ignored.csv

index 3d10b5aeabfdc0c5744c09e4e996711e1a719b2d..2126498e728cfa4667ea8a470a0040df3708d8b5 100644 (file)
@@ -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
index 85ff9d02aeb2db73c378c9c4ca01f1c14489645b..a34524bb673e89c4eaf5dbc13b0cfab44e560c10 100644 (file)
@@ -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).