[Python-checkins] bpo-39348: Fix code highlight for the SOCK_NONBLOCK example (GH-18018)

Miss Islington (bot) webhook-mailer at python.org
Wed Jan 15 19:00:40 EST 2020


https://github.com/python/cpython/commit/970188c2d792133e2273924a987e0542659a676f
commit: 970188c2d792133e2273924a987e0542659a676f
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-01-15T16:00:32-08:00
summary:

bpo-39348: Fix code highlight for the SOCK_NONBLOCK example (GH-18018)


The previous double colon was wrongly place directly after Therefore.
Which produced a block without syntax highlighting. This fixes it
by separating the double colon from the text. As a result, sphinx now
properly highlights the python code.

https://bugs.python.org/issue39348
(cherry picked from commit fad8b5674c66d9e00bb788e30adddb0c256c787b)

Co-authored-by: Oz N Tiram <oz.tiram at noris.de>

files:
M Doc/library/socket.rst

diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 178d7da2e5f09..7e8075ebf36b8 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -529,7 +529,9 @@ The following functions all create :ref:`socket objects <socket-objects>`.
       When :const:`SOCK_NONBLOCK` or :const:`SOCK_CLOEXEC`
       bit flags are applied to *type* they are cleared, and
       :attr:`socket.type` will not reflect them.  They are still passed
-      to the underlying system `socket()` call.  Therefore::
+      to the underlying system `socket()` call.  Therefore,
+
+      ::
 
           sock = socket.socket(
               socket.AF_INET,



More information about the Python-checkins mailing list