]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Fix return type docs for receive methods.
authorBrian Wellington <bwelling@xbill.org>
Wed, 8 Jul 2020 20:12:27 +0000 (13:12 -0700)
committerBrian Wellington <bwelling@xbill.org>
Wed, 8 Jul 2020 20:12:27 +0000 (13:12 -0700)
dns/asyncquery.py
dns/query.py

index b36a2f640e434be26c3b85475d1804b66b34518b..4afe7bcc8813eb071c265bd86907b750d76de211 100644 (file)
@@ -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)
index 3404b91727e8e12d09f564d1c92e54fbbe7060f6..13c824614e4dc4778287a12f5165c7a7c4a4be28 100644 (file)
@@ -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)