mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
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
This commit is contained in:
parent
01602ae403
commit
fad8b5674c
1 changed files with 3 additions and 1 deletions
|
@ -565,7 +565,9 @@ The following functions all create :ref:`socket objects <socket-objects>`.
|
||||||
When :const:`SOCK_NONBLOCK` or :const:`SOCK_CLOEXEC`
|
When :const:`SOCK_NONBLOCK` or :const:`SOCK_CLOEXEC`
|
||||||
bit flags are applied to *type* they are cleared, and
|
bit flags are applied to *type* they are cleared, and
|
||||||
:attr:`socket.type` will not reflect them. They are still passed
|
: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(
|
sock = socket.socket(
|
||||||
socket.AF_INET,
|
socket.AF_INET,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue