Skip to content

Commit d76a5c6

Browse files
Improve some grammar in the socket docs (GH-103254)
(cherry picked from commit bceb9e0) Co-authored-by: Tim Burke <tim.burke@gmail.com>
1 parent ec80ffe commit d76a5c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/socket.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,7 +1596,7 @@ to sockets.
15961596
much data, if any, was successfully sent.
15971597

15981598
.. versionchanged:: 3.5
1599-
The socket timeout is no more reset each time data is sent successfully.
1599+
The socket timeout is no longer reset each time data is sent successfully.
16001600
The socket timeout is now the maximum total duration to send all data.
16011601

16021602
.. versionchanged:: 3.5
@@ -1814,8 +1814,8 @@ can be changed by calling :func:`setdefaulttimeout`.
18141814

18151815
* In *non-blocking mode*, operations fail (with an error that is unfortunately
18161816
system-dependent) if they cannot be completed immediately: functions from the
1817-
:mod:`select` can be used to know when and whether a socket is available for
1818-
reading or writing.
1817+
:mod:`select` module can be used to know when and whether a socket is available
1818+
for reading or writing.
18191819

18201820
* In *timeout mode*, operations fail if they cannot be completed within the
18211821
timeout specified for the socket (they raise a :exc:`timeout` exception)
@@ -2004,7 +2004,7 @@ manager protocol instead, open a socket with::
20042004
socket.socket(socket.AF_CAN, socket.SOCK_DGRAM, socket.CAN_BCM)
20052005

20062006
After binding (:const:`CAN_RAW`) or connecting (:const:`CAN_BCM`) the socket, you
2007-
can use the :meth:`socket.send`, and the :meth:`socket.recv` operations (and
2007+
can use the :meth:`socket.send` and :meth:`socket.recv` operations (and
20082008
their counterparts) on the socket object as usual.
20092009

20102010
This last example might require special privileges::

0 commit comments

Comments
 (0)