/opt/imh-python/lib/python3.9/site-packages/dns
NameSizeModeActions
dnssecalgs/-0755rm
quic/-0755rm
rdtypes/-0755rm
__pycache__/-0755rm
asyncbackend.py27960644editdlrm
asyncquery.py308210644editdlrm
asyncresolver.py178520644editdlrm
dnssec.py417170644editdlrm
dnssectypes.py17990644editdlrm
e164.py39780644editdlrm
edns.py170890644editdlrm
entropy.py42420644editdlrm
enum.py36910644editdlrm
exception.py59530644editdlrm
flags.py27500644editdlrm
grange.py21440644editdlrm
immutable.py20170644editdlrm
inet.py57720644editdlrm
ipv4.py25520644editdlrm
ipv6.py65540644editdlrm
message.py681850644editdlrm
name.py427780644editdlrm
namedict.py40000644editdlrm
nameserver.py101150644editdlrm
node.py126630644editdlrm
opcode.py27300644editdlrm
py.typed00644editdlrm
query.py562980644editdlrm
rcode.py41560644editdlrm
rdata.py310220644editdlrm
rdataclass.py29840644editdlrm
rdataset.py166640644editdlrm
rdatatype.py74480644editdlrm
renderer.py112540644editdlrm
resolver.py737300644editdlrm
reversename.py38280644editdlrm
rrset.py91700644editdlrm
serial.py36060644editdlrm
set.py92130644editdlrm
tokenizer.py235830644editdlrm
transaction.py225890644editdlrm
tsig.py114130644editdlrm
tsigkeyring.py26330644editdlrm
ttl.py29770644editdlrm
update.py122430644editdlrm
version.py19260644editdlrm
versioned.py117650644editdlrm
win32util.py88740644editdlrm
wire.py28300644editdlrm
xfr.py132710644editdlrm
zone.py520860644editdlrm
zonefile.py279260644editdlrm
zonetypes.py6900644editdlrm
_asyncbackend.py23960644editdlrm
_asyncio_backend.py90510644editdlrm
_ddr.py52470644editdlrm
_features.py24920644editdlrm
_immutable_ctx.py24590644editdlrm
_trio_backend.py84730644editdlrm
__init__.py16630644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/dns/_asyncbackend.py (2396B)
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license # This is a nullcontext for both sync and async. 3.7 has a nullcontext, # but it is only for sync use. class NullContext: def __init__(self, enter_result=None): self.enter_result = enter_result def __enter__(self): return self.enter_result def __exit__(self, exc_type, exc_value, traceback): pass async def __aenter__(self): return self.enter_result async def __aexit__(self, exc_type, exc_value, traceback): pass # These are declared here so backends can import them without creating # circular dependencies with dns.asyncbackend. class Socket: # pragma: no cover def __init__(self, family: int, type: int): self.family = family self.type = type async def close(self): pass async def getpeername(self): raise NotImplementedError async def getsockname(self): raise NotImplementedError async def getpeercert(self, timeout): raise NotImplementedError async def __aenter__(self): return self async def __aexit__(self, exc_type, exc_value, traceback): await self.close() class DatagramSocket(Socket): # pragma: no cover async def sendto(self, what, destination, timeout): raise NotImplementedError async def recvfrom(self, size, timeout): raise NotImplementedError class StreamSocket(Socket): # pragma: no cover async def sendall(self, what, timeout): raise NotImplementedError async def recv(self, size, timeout): raise NotImplementedError class NullTransport: async def connect_tcp(self, host, port, timeout, local_address): raise NotImplementedError class Backend: # pragma: no cover def name(self): return "unknown" async def make_socket( self, af, socktype, proto=0, source=None, destination=None, timeout=None, ssl_context=None, server_hostname=None, ): raise NotImplementedError def datagram_connection_required(self): return False async def sleep(self, interval): raise NotImplementedError def get_transport_class(self): raise NotImplementedError async def wait_for(self, awaitable, timeout): raise NotImplementedError