]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39348: Fix code highlight for the SOCK_NONBLOCK example (GH-18018)
authorOz N Tiram <oz.tiram@noris.de>
Wed, 15 Jan 2020 23:55:13 +0000 (00:55 +0100)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 15 Jan 2020 23:55:13 +0000 (15:55 -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

Doc/library/socket.rst

index 2d7ca33f2927dcc4e5facb073a431b8c4d9e4bd6..2cc946c519d4052d5b9d1b3be12dbfea2271c58a 100755 (executable)
@@ -565,7 +565,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,