Skip to content

Commit ca5e908

Browse files
committed
#12725: fix working. Patch by Ben Hayden.
1 parent 92be113 commit ca5e908

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

Doc/ACKS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ docs@python.org), and we'll be glad to correct the problem.
7777
* Travis B. Hartwell
7878
* Tim Hatch
7979
* Janko Hauser
80+
* Ben Hayden
8081
* Thomas Heller
8182
* Bernhard Herzog
8283
* Magnus L. Hetland

Doc/library/socket.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ The module :mod:`socket` exports the following constants and functions:
488488

489489
.. function:: getdefaulttimeout()
490490

491-
Return the default timeout in floating seconds for new socket objects. A value
491+
Return the default timeout in seconds (float) for new socket objects. A value
492492
of ``None`` indicates that new socket objects have no timeout. When the socket
493493
module is first imported, the default is ``None``.
494494

@@ -497,7 +497,7 @@ The module :mod:`socket` exports the following constants and functions:
497497

498498
.. function:: setdefaulttimeout(timeout)
499499

500-
Set the default timeout in floating seconds for new socket objects. A value of
500+
Set the default timeout in seconds (float) for new socket objects. A value of
501501
``None`` indicates that new socket objects have no timeout. When the socket
502502
module is first imported, the default is ``None``.
503503

@@ -766,7 +766,7 @@ correspond to Unix system calls applicable to sockets.
766766

767767
.. method:: socket.gettimeout()
768768

769-
Return the timeout in floating seconds associated with socket operations, or
769+
Return the timeout in seconds (float) associated with socket operations, or
770770
``None`` if no timeout is set. This reflects the last call to
771771
:meth:`setblocking` or :meth:`settimeout`.
772772

Modules/socketmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,7 @@ sock_gettimeout(PySocketSockObject *s)
17841784
PyDoc_STRVAR(gettimeout_doc,
17851785
"gettimeout() -> timeout\n\
17861786
\n\
1787-
Returns the timeout in floating seconds associated with socket \n\
1787+
Returns the timeout in seconds (float) associated with socket \n\
17881788
operations. A timeout of None indicates that timeouts on socket \n\
17891789
operations are disabled.");
17901790

@@ -4252,7 +4252,7 @@ socket_getdefaulttimeout(PyObject *self)
42524252
PyDoc_STRVAR(getdefaulttimeout_doc,
42534253
"getdefaulttimeout() -> timeout\n\
42544254
\n\
4255-
Returns the default timeout in floating seconds for new socket objects.\n\
4255+
Returns the default timeout in seconds (float) for new socket objects.\n\
42564256
A value of None indicates that new socket objects have no timeout.\n\
42574257
When the socket module is first imported, the default is None.");
42584258

@@ -4282,7 +4282,7 @@ socket_setdefaulttimeout(PyObject *self, PyObject *arg)
42824282
PyDoc_STRVAR(setdefaulttimeout_doc,
42834283
"setdefaulttimeout(timeout)\n\
42844284
\n\
4285-
Set the default timeout in floating seconds for new socket objects.\n\
4285+
Set the default timeout in seconds (float) for new socket objects.\n\
42864286
A value of None indicates that new socket objects have no timeout.\n\
42874287
When the socket module is first imported, the default is None.");
42884288

0 commit comments

Comments
 (0)