Commit 388c945e authored by Ezio Melotti's avatar Ezio Melotti

#12725: fix working. Patch by Ben Hayden.

parent 3abb372c
...@@ -79,6 +79,7 @@ docs@python.org), and we'll be glad to correct the problem. ...@@ -79,6 +79,7 @@ docs@python.org), and we'll be glad to correct the problem.
* Travis B. Hartwell * Travis B. Hartwell
* Tim Hatch * Tim Hatch
* Janko Hauser * Janko Hauser
* Ben Hayden
* Thomas Heller * Thomas Heller
* Bernhard Herzog * Bernhard Herzog
* Magnus L. Hetland * Magnus L. Hetland
......
...@@ -513,14 +513,14 @@ The module :mod:`socket` exports the following constants and functions: ...@@ -513,14 +513,14 @@ The module :mod:`socket` exports the following constants and functions:
.. function:: getdefaulttimeout() .. function:: getdefaulttimeout()
Return the default timeout in floating seconds for new socket objects. A value Return the default timeout in seconds (float) for new socket objects. A value
of ``None`` indicates that new socket objects have no timeout. When the socket of ``None`` indicates that new socket objects have no timeout. When the socket
module is first imported, the default is ``None``. module is first imported, the default is ``None``.
.. function:: setdefaulttimeout(timeout) .. function:: setdefaulttimeout(timeout)
Set the default timeout in floating seconds for new socket objects. When Set the default timeout in seconds (float) for new socket objects. When
the socket module is first imported, the default is ``None``. See the socket module is first imported, the default is ``None``. See
:meth:`~socket.settimeout` for possible values and their respective :meth:`~socket.settimeout` for possible values and their respective
meanings. meanings.
...@@ -632,7 +632,7 @@ correspond to Unix system calls applicable to sockets. ...@@ -632,7 +632,7 @@ correspond to Unix system calls applicable to sockets.
.. method:: socket.gettimeout() .. method:: socket.gettimeout()
Return the timeout in floating seconds associated with socket operations, Return the timeout in seconds (float) associated with socket operations,
or ``None`` if no timeout is set. This reflects the last call to or ``None`` if no timeout is set. This reflects the last call to
:meth:`setblocking` or :meth:`settimeout`. :meth:`setblocking` or :meth:`settimeout`.
......
...@@ -1808,7 +1808,7 @@ sock_gettimeout(PySocketSockObject *s) ...@@ -1808,7 +1808,7 @@ sock_gettimeout(PySocketSockObject *s)
PyDoc_STRVAR(gettimeout_doc, PyDoc_STRVAR(gettimeout_doc,
"gettimeout() -> timeout\n\ "gettimeout() -> timeout\n\
\n\ \n\
Returns the timeout in floating seconds associated with socket \n\ Returns the timeout in seconds (float) associated with socket \n\
operations. A timeout of None indicates that timeouts on socket \n\ operations. A timeout of None indicates that timeouts on socket \n\
operations are disabled."); operations are disabled.");
...@@ -4201,7 +4201,7 @@ socket_getdefaulttimeout(PyObject *self) ...@@ -4201,7 +4201,7 @@ socket_getdefaulttimeout(PyObject *self)
PyDoc_STRVAR(getdefaulttimeout_doc, PyDoc_STRVAR(getdefaulttimeout_doc,
"getdefaulttimeout() -> timeout\n\ "getdefaulttimeout() -> timeout\n\
\n\ \n\
Returns the default timeout in floating seconds for new socket objects.\n\ Returns the default timeout in seconds (float) for new socket objects.\n\
A value of None indicates that new socket objects have no timeout.\n\ A value of None indicates that new socket objects have no timeout.\n\
When the socket module is first imported, the default is None."); When the socket module is first imported, the default is None.");
...@@ -4231,7 +4231,7 @@ socket_setdefaulttimeout(PyObject *self, PyObject *arg) ...@@ -4231,7 +4231,7 @@ socket_setdefaulttimeout(PyObject *self, PyObject *arg)
PyDoc_STRVAR(setdefaulttimeout_doc, PyDoc_STRVAR(setdefaulttimeout_doc,
"setdefaulttimeout(timeout)\n\ "setdefaulttimeout(timeout)\n\
\n\ \n\
Set the default timeout in floating seconds for new socket objects.\n\ Set the default timeout in seconds (float) for new socket objects.\n\
A value of None indicates that new socket objects have no timeout.\n\ A value of None indicates that new socket objects have no timeout.\n\
When the socket module is first imported, the default is None."); When the socket module is first imported, the default is None.");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment