Skip to content

Commit

Permalink
bpo-39348: Fix code highlight for the SOCK_NONBLOCK example (pythonGH…
Browse files Browse the repository at this point in the history
…-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
  • Loading branch information
Oz N Tiram authored and shihai1991 committed Jan 31, 2020
1 parent 9238cdf commit 01e181e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Doc/library/socket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 01e181e

Please sign in to comment.