]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39348: Fix code highlight for the SOCK_NONBLOCK example (GH-18018)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 16 Jan 2020 00:00:32 +0000 (16:00 -0800)
committerGitHub <noreply@github.com>
Thu, 16 Jan 2020 00:00:32 +0000 (16:00 -0800)
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@noris.de>
Doc/library/socket.rst

index 178d7da2e5f09d30b8bdc0ef5561c48a8601ab9f..7e8075ebf36b830e6cfc476e837eb9549b2f19af 100644 (file)
@@ -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,