summaryrefslogtreecommitdiff
path: root/dns/asyncquery.py
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-06-13 10:57:46 -0700
committerBob Halley <halley@dnspython.org>2020-06-13 10:57:46 -0700
commitdce23a614f2d11bd802c7f9aed8f3ab0e883f468 (patch)
tree1c7ae84322313b3acb4a19a98445546d2270850c /dns/asyncquery.py
parentd701908258b93a6434f4175cc0f8181cbd6cbb53 (diff)
downloaddnspython-dce23a614f2d11bd802c7f9aed8f3ab0e883f468.tar.gz
Add some comments about opportunities after 3.6 is not supported.
Diffstat (limited to 'dns/asyncquery.py')
-rw-r--r--dns/asyncquery.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/dns/asyncquery.py b/dns/asyncquery.py
index 68d1a35..03e9fad 100644
--- a/dns/asyncquery.py
+++ b/dns/asyncquery.py
@@ -189,6 +189,7 @@ async def udp(q, where, timeout=None, port=53, source=None, source_port=0,
wire = q.to_wire()
(begin_time, expiration) = _compute_times(timeout)
s = None
+ # After 3.6 is no longer supported, this can use an AsyncExitStack.
try:
if sock:
s = sock
@@ -391,6 +392,7 @@ async def tcp(q, where, timeout=None, port=53, source=None, source_port=0,
wire = q.to_wire()
(begin_time, expiration) = _compute_times(timeout)
s = None
+ # After 3.6 is no longer supported, this can use an AsyncExitStack.
try:
if sock:
# Verify that the socket is connected, as if it's not connected,
@@ -468,6 +470,7 @@ async def tls(q, where, timeout=None, port=853, source=None, source_port=0,
Returns a ``dns.message.Message``.
"""
+ # After 3.6 is no longer supported, this can use an AsyncExitStack.
(begin_time, expiration) = _compute_times(timeout)
if not sock:
if ssl_context is None: