diff options
author | Paul Hoffman <phoffman@proper.com> | 2021-10-13 14:04:07 -0700 |
---|---|---|
committer | Paul Hoffman <phoffman@proper.com> | 2021-10-13 14:04:07 -0700 |
commit | cb4fbad60e06266ccc9614727653e99781648333 (patch) | |
tree | 9ee18915665c07021e0a6632c43324389fb65fb3 | |
parent | 6a9649ccef74b42856fb1359ef96c1a456bef0a1 (diff) | |
download | dnspython-cb4fbad60e06266ccc9614727653e99781648333.tar.gz |
Removed the "connected" from UDP sockets (thank you Brian!)
-rw-r--r-- | dns/query.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dns/query.py b/dns/query.py index d7a642a..6edc0d5 100644 --- a/dns/query.py +++ b/dns/query.py @@ -484,7 +484,7 @@ def udp(q, where, timeout=None, port=53, source=None, source_port=0, *raise_on_truncation*, a ``bool``. If ``True``, raise an exception if the TC bit is set. - *sock*, a connected ``socket.socket``, or ``None``, the socket to use for the + *sock*, a ``socket.socket``, or ``None``, the socket to use for the query. If ``None``, the default, a socket is created. Note that if a socket is provided, it must be a nonblocking datagram socket, and the *source* and *source_port* are ignored. @@ -543,7 +543,7 @@ def udp_with_fallback(q, where, timeout=None, port=53, source=None, *ignore_trailing*, a ``bool``. If ``True``, ignore trailing junk at end of the received message. - *udp_sock*, a connected ``socket.socket``, or ``None``, the socket to use for the + *udp_sock*, a ``socket.socket``, or ``None``, the socket to use for the UDP query. If ``None``, the default, a socket is created. Note that if a socket is provided, it must be a nonblocking datagram socket, and the *source* and *source_port* are ignored for the UDP query. |