summaryrefslogtreecommitdiff
path: root/Doc/library/logging.config.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-04-09 17:57:07 +0300
committerGitHub <noreply@github.com>2018-04-09 17:57:07 +0300
commit1429ac9f2c7d7afa5cd88149b097084c7b5775c4 (patch)
tree0895c7dff843b091e4ad3e7b469f998807142830 /Doc/library/logging.config.rst
parent335efd7c252799eeeb8cbf51d178b1b897a91ae2 (diff)
downloadcpython-git-1429ac9f2c7d7afa5cd88149b097084c7b5775c4.tar.gz
[3.6] Improve highlighting of some code blocks. (GH-6401). (GH-6424)
(cherry picked from commit 46936d5a71d1683dbd8ddb6d7f39aab50ecfec50)
Diffstat (limited to 'Doc/library/logging.config.rst')
-rw-r--r--Doc/library/logging.config.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/library/logging.config.rst b/Doc/library/logging.config.rst
index a7928a0647..9a75a3c81d 100644
--- a/Doc/library/logging.config.rst
+++ b/Doc/library/logging.config.rst
@@ -538,7 +538,9 @@ target handler, and the system will resolve to the handler from the
id. If, however, a user defines a ``my.package.MyHandler`` which has
an ``alternate`` handler, the configuration system would not know that
the ``alternate`` referred to a handler. To cater for this, a generic
-resolution system allows the user to specify::
+resolution system allows the user to specify:
+
+.. code-block:: yaml
handlers:
file:
@@ -552,7 +554,9 @@ The literal string ``'cfg://handlers.file'`` will be resolved in an
analogous way to strings with the ``ext://`` prefix, but looking
in the configuration itself rather than the import namespace. The
mechanism allows access by dot or by index, in a similar way to
-that provided by ``str.format``. Thus, given the following snippet::
+that provided by ``str.format``. Thus, given the following snippet:
+
+.. code-block:: yaml
handlers:
email: