]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
fix sniffio-less asyncio detection on 3.6.x
authorBob Halley <halley@dnspython.org>
Wed, 17 Jun 2020 14:50:10 +0000 (07:50 -0700)
committerBob Halley <halley@dnspython.org>
Wed, 17 Jun 2020 14:50:10 +0000 (07:50 -0700)
dns/asyncbackend.py

index f028417c971474b6f10286753c89e0e487325116..9582a6f8120e5f10336411648cd3ce989681ae91 100644 (file)
@@ -70,6 +70,7 @@ def sniff():
             # we have to check current_task on 3.6
             if not asyncio.Task.current_task():
                 raise AsyncLibraryNotFoundError('no async library detected')
+            return 'asyncio'
 
 
 def get_default_backend():