From f7fc4409bfc33a800829bd151e7094ba6d1061d4 Mon Sep 17 00:00:00 2001 From: Oz Tiram Date: Thu, 16 Jan 2020 00:31:08 +0100 Subject: [PATCH] Fix code highlight for the SOCK_NONBLOCK example 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 propely hightlights the python code. --- Doc/library/socket.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 2d7ca33f2927dc..2cc946c519d405 100755 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -565,7 +565,9 @@ The following functions all create :ref:`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,