]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Use nullcontext for async code, as well. 794/head
authorBrian Wellington <bwelling@xbill.org>
Fri, 18 Mar 2022 20:41:28 +0000 (13:41 -0700)
committerBrian Wellington <bwelling@xbill.org>
Fri, 18 Mar 2022 20:41:28 +0000 (13:41 -0700)
commited42e237d19c4ae70036f24a55fa1e04bffc1a5a
treeac535f273727cad10708b3ee50af4241311d3122
parentc88ec0a79d0f1db45e0e87495d115ab445c3c179
Use nullcontext for async code, as well.

We can't use contextlib.nullcontext(), as it doesn't support async
context managers until 3.10, but we can use
dns._asyncbackend.NullContext.
dns/asyncquery.py