From: Bob Halley Date: Wed, 17 Jun 2020 14:50:10 +0000 (-0700) Subject: fix sniffio-less asyncio detection on 3.6.x X-Git-Tag: v2.0.0rc1~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03269e9dc8abddb497c712d6bef8fefd98a7c26e;p=thirdparty%2Fdnspython.git fix sniffio-less asyncio detection on 3.6.x --- diff --git a/dns/asyncbackend.py b/dns/asyncbackend.py index f028417c..9582a6f8 100644 --- a/dns/asyncbackend.py +++ b/dns/asyncbackend.py @@ -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():