Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/dns/__pycache__/asyncbackend.cpython-312.pyc

29 lines
3.3 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
g<> i<>
<00><00><><00>UddlmZddlZddlmZmZmZmZda iZ
ee efe d<dZ Gd<06>dejj<00>Zde d efd
<EFBFBD>Zd e fd <0B>Zd efd <0C>Zde d efd <0A>Zy)<0E>)<01>DictN)<04>Backend<6E>DatagramSocket<65>Socket<65> StreamSocket<65> _backendsFc<00> <00>eZdZy)<02>AsyncLibraryNotFoundErrorN)<03>__name__<5F>
__module__<EFBFBD> __qualname__<5F><00><00>?E:\Project\pygoedge\.venv\Lib\site-packages\dns/asyncbackend.pyr
r
s<00><00>rr
<00>name<6D>returnc<00><><00>tj|<00>}|r|S|dk(rddl}|jj <00>}n2|dk(rddl}|j j <00>}ntd|<00><00><02><00>|t|<|S)z<>Get 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.
<20>triorN<>asynciozunimplemented async backend )r<00>get<65>dns._trio_backend<6E> _trio_backendr<00>dns._asyncio_backend<6E>_asyncio_backend<6E>NotImplementedError)r<00>backend<6E>dnss r<00> get_backendrsx<00><00><18>m<EFBFBD>m<EFBFBD>D<EFBFBD>!<21>G<EFBFBD><0E><16><0E> <0B>v<EFBFBD>~<7E> <20><15>#<23>#<23>+<2B>+<2B>-<2D><07> <0A><19> <1A>#<23><15>&<26>&<26>.<2E>.<2E>0<><07>!<21>$@<40><14><06>"G<>H<>H<><1D>I<EFBFBD>d<EFBFBD>O<EFBFBD> <12>Nrc<00><><00> trt<00>ddl} |j<00>S#|j$r t d<03><00>wxYw#t$r0ddl} |j <00>Yy#t$r t d<05><00>wxYwwxYw)z<>Attempt 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.
rNz&sniffio cannot determine async libraryrzno async library detected)<08> _no_sniffio<69> ImportError<6F>sniffio<69>current_async_libraryr
r<00>get_running_loop<6F> RuntimeError)r"rs r<00>sniffr&7s<><00><00>I<01> <16><1D> <1D><16> V<01><1A>0<>0<>2<> 2<><32><16>0<>0<> V<01>+<2B>,T<>U<> U<> V<01><> <16>I<01><16> I<01> <13> $<24> $<24> &<26><1C><><1B> I<01>+<2B>,G<>H<> H<> I<01><> I<01>s*<00>A<00>#<00>><03>A<00> A:<03>A!<02>!A6<05>6A:c<00>@<00>trtStt<00><00>S)z6Get the default backend, initializing it if necessary.)<03>_default_backend<6E>set_default_backendr&rrr<00>get_default_backendr*Rs<00><00><17><1F><1F> <1E>u<EFBFBD>w<EFBFBD> '<27>'rc<00>$<00>t|<00>atS)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.
)rr()rs rr)r)Zs<00><00>#<23>4<EFBFBD>(<28><14> <1B>r)<15>typingr<00> dns.exceptionr<00>dns._asyncbackendrrrrr(r<00>str<74>__annotations__r <00> exception<6F> DNSExceptionr
rr&r*r)rrr<00><module>r3s<><00><01><18><14><02><02><18><10> "<22> <09>4<EFBFBD><03>W<EFBFBD> <0C> <1D>"<22><14> <0B> <09><03> <0A> <0A> :<3A> :<3A> <09><13>c<EFBFBD><13>g<EFBFBD><13>4I<01>s<EFBFBD>I<01>6(<28>W<EFBFBD>(<28> <1C>c<EFBFBD> <1C>g<EFBFBD> r