summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 2d7ca33f29..2cc946c519 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,