[New-bugs-announce] [issue39348] wrong rst syntax in socket.rst
Oz Tiram
report at bugs.python.org
Wed Jan 15 18:41:24 EST 2020
New submission from Oz Tiram <nahumoz at gmail.com>:
The code block for the isn't hightlighted:
Changed in version 3.7: When SOCK_NONBLOCK or SOCK_CLOEXEC bit flags are applied to type they are cleared, and socket.type will not reflect them. They are still passed to the underlying system socket() call. Therefore::
sock = socket.socket(
...
This is because the double colon is directly after the word Therefore.
This fix is very simple:
: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,
...
I have prepared a PR for this.
----------
assignee: docs at python
components: Documentation
messages: 360086
nosy: Oz.Tiram, docs at python
priority: normal
severity: normal
status: open
title: wrong rst syntax in socket.rst
versions: Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39348>
_______________________________________
More information about the New-bugs-announce
mailing list