]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-104882: Docs: fix description of relationship between `socket.getblocking...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 4 Jun 2023 16:09:13 +0000 (09:09 -0700)
committerGitHub <noreply@github.com>
Sun, 4 Jun 2023 16:09:13 +0000 (17:09 +0100)
gh-104882: Docs: fix description of relationship between `socket.getblocking()` and `socket.gettimeout()` (GH-105026)
(cherry picked from commit 5a5ed7a3e616a372f054a1dd2e9a31ba32a87a67)

Co-authored-by: Joe Geisbauer <joegeisbauer@gmail.com>
Doc/library/socket.rst

index ab38b1d1da064dadb782937090c9098c86044915..19b4a1ee59c28258a85c535285c7d6c0e95814b8 100644 (file)
@@ -1428,7 +1428,7 @@ to sockets.
    Return ``True`` if socket is in blocking mode, ``False`` if in
    non-blocking.
 
-   This is equivalent to checking ``socket.gettimeout() == 0``.
+   This is equivalent to checking ``socket.gettimeout() != 0``.
 
    .. versionadded:: 3.7