Fix highlighting in importlib.metadata docs (GH-13575)

This commit is contained in:
Anthony Sottile 2019-05-26 07:30:52 -07:00 committed by Jason R. Coombs
parent 180dc1b0f4
commit 22ccb0b490
2 changed files with 4 additions and 5 deletions

View 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

View 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).

1 c-api/arg :ref PyArg_ParseTuple(args, "O|O:ref", &object, &callback)
350 whatsnew/changelog :: error::BytesWarning
351 whatsnew/changelog :: default::BytesWarning
352 whatsnew/changelog :: default::DeprecationWarning
library/importlib.metadata .. highlight: .. highlight:: none
353 library/importlib.metadata :main EntryPoint(name='wheel', value='wheel.cli:main', group='console_scripts')
354 library/importlib.metadata ` of directories ``path`` (defaults to sys.path).