Skip to content

Commit fad8b56

Browse files
Oz N Tirammiss-islington
authored andcommitted
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
1 parent 01602ae commit fad8b56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/library/socket.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,9 @@ The following functions all create :ref:`socket objects <socket-objects>`.
565565
When :const:`SOCK_NONBLOCK` or :const:`SOCK_CLOEXEC`
566566
bit flags are applied to *type* they are cleared, and
567567
:attr:`socket.type` will not reflect them. They are still passed
568-
to the underlying system `socket()` call. Therefore::
568+
to the underlying system `socket()` call. Therefore,
569+
570+
::
569571

570572
sock = socket.socket(
571573
socket.AF_INET,

0 commit comments

Comments
 (0)