summaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-06-09 07:08:13 -0700
committerBob Halley <halley@dnspython.org>2020-06-09 07:08:13 -0700
commitfa1d4938a8296b4ae88f7bbc5dfa67377995b9e2 (patch)
tree114ab651172041d2200f5e6a7be59e14d93dea03 /dns
parentf7b50bae3e41d1b5c0f7b9cab31b538fcdcd3dd8 (diff)
downloaddnspython-fa1d4938a8296b4ae88f7bbc5dfa67377995b9e2.tar.gz
imnprove comment
Diffstat (limited to 'dns')
-rw-r--r--dns/trio/query.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/dns/trio/query.py b/dns/trio/query.py
index 53b8fe5..a3a28fe 100644
--- a/dns/trio/query.py
+++ b/dns/trio/query.py
@@ -324,8 +324,9 @@ async def stream(q, where, tls=False, port=None, source=None, source_port=0,
else:
port = 53
wire = q.to_wire()
- # We'd like to be able to use an AsyncExitStack here, but that's a 3.7
- # feature, so we are forced to try ... finally.
+ # We'd like to be able to use an AsyncExitStack here, because
+ # unlike closing a socket, closing a stream requires an await, but
+ # that's a 3.7 feature, so we are forced to try ... finally.
sock = None
s = None
begin_time = time.time()