]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
imnprove comment
authorBob Halley <halley@dnspython.org>
Tue, 9 Jun 2020 14:08:13 +0000 (07:08 -0700)
committerBob Halley <halley@dnspython.org>
Tue, 9 Jun 2020 14:08:13 +0000 (07:08 -0700)
dns/trio/query.py

index 53b8fe50b9329543959b5feeea30d7e7ec33c675..a3a28fed5ccc8e89cf6d349ec4a9bf702241a970 100644 (file)
@@ -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()