summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorOz N Tiram <oz.tiram@noris.de>2020-01-15 23:55:13 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-01-15 23:55:13 (GMT)
commitfad8b5674c66d9e00bb788e30adddb0c256c787b (patch)
tree16ae5808c8663ff3abb29f4213a4cd636e45bc0f /Doc/library
parent01602ae40321ecdb375ee6d44eaeac3255857879 (diff)
downloadcpython-fad8b5674c66d9e00bb788e30adddb0c256c787b.zip
cpython-fad8b5674c66d9e00bb788e30adddb0c256c787b.tar.gz
cpython-fad8b5674c66d9e00bb788e30adddb0c256c787b.tar.bz2
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
Diffstat (limited to 'Doc/library')
-rwxr-xr-xDoc/library/socket.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 2d7ca33..2cc946c 100755
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -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,