diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-09-01 09:12:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-01 09:12:52 (GMT) |
commit | 5eca7f3f3836cc734dfe8dc5ec669f3b4e9333fe (patch) | |
tree | 2a3eee6b520cafadc4c3b950e73bad0c0b1aa5ce /Modules | |
parent | eb8974616bc58f44b2a3c3e4ca2326894ae42c8f (diff) | |
download | cpython-5eca7f3f3836cc734dfe8dc5ec669f3b4e9333fe.zip cpython-5eca7f3f3836cc734dfe8dc5ec669f3b4e9333fe.tar.gz cpython-5eca7f3f3836cc734dfe8dc5ec669f3b4e9333fe.tar.bz2 |
bpo-15999: Always pass bool instead of int to socket.setblocking(). (GH-15621)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index d4f2098..3548b0c 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -146,7 +146,7 @@ recvfrom_into(buffer[, nbytes, [, flags])\n\ sendall(data[, flags]) -- send all data\n\ send(data[, flags]) -- send data, may not send all of it\n\ sendto(data[, flags], addr) -- send data to a given address\n\ -setblocking(0 | 1) -- set or clear the blocking I/O flag\n\ +setblocking(bool) -- set or clear the blocking I/O flag\n\ getblocking() -- return True if socket is blocking, False if non-blocking\n\ setsockopt(level, optname, value[, optlen]) -- set socket options\n\ settimeout(None | float) -- set or clear the timeout\n\ |