/usr/lib/rads/venv/lib/python3.13/site-packages/dns/__pycache__
Edit: /usr/lib/rads/venv/lib/python3.13/site-packages/dns/__pycache__/asyncbackend.cpython-313.pyc (3455B)
j
% S SK Jr S SKrS SKJrJrJrJr Sq 0 r
\\\4 \S' Sr
" S S\R R 5 rS\S \4S
jrS \4S jrS \4S jrS\S \4S
jrg) )DictN)BackendDatagramSocketSocketStreamSocket _backendsFc \ rS rSrSrg)AsyncLibraryNotFoundError N)__name__
__module____qualname____firstlineno____static_attributes__r C/usr/lib/rads/venv/lib/python3.13/site-packages/dns/asyncbackend.pyr
r
s r r
namereturnc [ R U 5 nU( a U$ U S:X a SSKnUR R 5 nO3U S:X a SSKnUR R 5 nO[ SU 35 eU[ U ' U$ )zGet the specified asynchronous backend.
*name*, a ``str``, the name of the backend. Currently the "trio"
and "asyncio" backends are available.
Raises NotImplementedError if an unknown backend name is specified.
trior Nasynciozunimplemented async backend )r getdns._trio_backend
_trio_backendr dns._asyncio_backend_asyncio_backendNotImplementedError)r backenddnss r get_backendr! sx mmD!Gv~ ##++-
#&&..0!$@"GHHIdONr c
[ ( a [ eSSKn U R 5 $ ! U R a [ S5 ef = f! [ a1 SSKn UR
5 g! [ a [ S5 ef = ff = f)zAttempt to determine the in-use asynchronous I/O library by using
the ``sniffio`` module if it is available.
Returns the name of the library, or raises AsyncLibraryNotFoundError
if the library cannot be determined.
r Nz&sniffio cannot determine async libraryr zno async library detected)_no_sniffioImportErrorsniffiocurrent_async_libraryr
r get_running_loopRuntimeError)r% r s r sniffr) 7 s I; V002200 V+,TUU V I I$$& I+,GHH I
Is, A ( AA BA((A>>Bc J [ ( a [ $ [ [ 5 5 $ )z6Get the default backend, initializing it if necessary.)_default_backendset_default_backendr) r r r get_default_backendr- R s uw''r c $ [ U 5 q[ $ )a Set the default backend.
It's not normally necessary to call this method, as
``get_default_backend()`` will initialize the backend
appropriately in many cases. If ``sniffio`` is not installed, or
in testing situations, this function allows the backend to be set
explicitly.
)r! r+ )r s r r, r, Z s #4(r )typingr
dns.exceptionr dns._asyncbackendr r r r r+ r str__annotations__r# exceptionDNSExceptionr
r! r) r- r, r r r
r6 s " 4W "
: : c g 4Is I6(W (c g r