summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Wellington <bwelling@xbill.org>2020-07-08 13:12:27 -0700
committerBrian Wellington <bwelling@xbill.org>2020-07-08 13:12:27 -0700
commit561104fb3445fbd10c3f27857aeb47eeb2b7717c (patch)
treecdcda2402d5b9daf031e603ebc4b8c3a09bb6938
parent1f1186ad9c838de96b07b03858052faa2ce163bc (diff)
downloaddnspython-561104fb3445fbd10c3f27857aeb47eeb2b7717c.tar.gz
Fix return type docs for receive methods.
-rw-r--r--dns/asyncquery.py6
-rw-r--r--dns/query.py6
2 files changed, 8 insertions, 4 deletions
diff --git a/dns/asyncquery.py b/dns/asyncquery.py
index b36a2f6..4afe7bc 100644
--- a/dns/asyncquery.py
+++ b/dns/asyncquery.py
@@ -121,7 +121,8 @@ async def receive_udp(sock, destination, expiration=None,
Raises if the message is malformed, if network errors occur, of if
there is a timeout.
- Returns a ``dns.message.Message`` object.
+ Returns a ``(dns.message.Message, float)`` tuple of the received message
+ and the received time.
"""
wire = b''
@@ -338,7 +339,8 @@ async def receive_tcp(sock, expiration=None, one_rr_per_rrset=False,
Raises if the message is malformed, if network errors occur, of if
there is a timeout.
- Returns a ``dns.message.Message`` object.
+ Returns a ``(dns.message.Message, float)`` tuple of the received message
+ and the received time.
"""
ldata = await _read_exactly(sock, 2, expiration)
diff --git a/dns/query.py b/dns/query.py
index 3404b91..13c8246 100644
--- a/dns/query.py
+++ b/dns/query.py
@@ -431,7 +431,8 @@ def receive_udp(sock, destination, expiration=None,
Raises if the message is malformed, if network errors occur, of if
there is a timeout.
- Returns a ``dns.message.Message`` object.
+ Returns a ``(dns.message.Message, float)`` tuple of the received message
+ and the received time.
"""
wire = b''
@@ -659,7 +660,8 @@ def receive_tcp(sock, expiration=None, one_rr_per_rrset=False,
Raises if the message is malformed, if network errors occur, of if
there is a timeout.
- Returns a ``dns.message.Message`` object.
+ Returns a ``(dns.message.Message, float)`` tuple of the received message
+ and the received time.
"""
ldata = _net_read(sock, 2, expiration)