Skip to content

Commit 5a5ed7a

Browse files
authored
gh-104882: Docs: fix description of relationship between socket.getblocking() and socket.gettimeout() (#105026)
1 parent 9a90c9a commit 5a5ed7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/socket.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ to sockets.
15271527
Return ``True`` if socket is in blocking mode, ``False`` if in
15281528
non-blocking.
15291529

1530-
This is equivalent to checking ``socket.gettimeout() == 0``.
1530+
This is equivalent to checking ``socket.gettimeout() != 0``.
15311531

15321532
.. versionadded:: 3.7
15331533

0 commit comments

Comments
 (0)