/usr/lib/python3.9/site-packages/dns/__pycache__
NameSizeModeActions
asyncbackend.cpython-39.opt-1.pyc26160644editdlrm
asyncbackend.cpython-39.pyc26160644editdlrm
asyncquery.cpython-39.opt-1.pyc178050644editdlrm
asyncquery.cpython-39.pyc178170644editdlrm
asyncresolver.cpython-39.opt-1.pyc129580644editdlrm
asyncresolver.cpython-39.pyc130020644editdlrm
dnssec.cpython-39.opt-1.pyc321600644editdlrm
dnssec.cpython-39.pyc321880644editdlrm
dnssectypes.cpython-39.opt-1.pyc16160644editdlrm
dnssectypes.cpython-39.pyc16160644editdlrm
e164.cpython-39.opt-1.pyc34520644editdlrm
e164.cpython-39.pyc34520644editdlrm
edns.cpython-39.opt-1.pyc147200644editdlrm
edns.cpython-39.pyc147340644editdlrm
entropy.cpython-39.opt-1.pyc33480644editdlrm
entropy.cpython-39.pyc33480644editdlrm
enum.cpython-39.opt-1.pyc32490644editdlrm
enum.cpython-39.pyc32490644editdlrm
exception.cpython-39.opt-1.pyc55180644editdlrm
exception.cpython-39.pyc57140644editdlrm
flags.cpython-39.opt-1.pyc22080644editdlrm
flags.cpython-39.pyc22080644editdlrm
grange.cpython-39.opt-1.pyc10890644editdlrm
grange.cpython-39.pyc11330644editdlrm
immutable.cpython-39.opt-1.pyc24280644editdlrm
immutable.cpython-39.pyc24280644editdlrm
inet.cpython-39.opt-1.pyc46030644editdlrm
inet.cpython-39.pyc46030644editdlrm
ipv4.cpython-39.opt-1.pyc18440644editdlrm
ipv4.cpython-39.pyc18440644editdlrm
ipv6.cpython-39.opt-1.pyc39380644editdlrm
ipv6.cpython-39.pyc39380644editdlrm
message.cpython-39.opt-1.pyc506310644editdlrm
message.cpython-39.pyc506720644editdlrm
name.cpython-39.opt-1.pyc350740644editdlrm
name.cpython-39.pyc350890644editdlrm
namedict.cpython-39.opt-1.pyc29860644editdlrm
namedict.cpython-39.pyc29860644editdlrm
nameserver.cpython-39.opt-1.pyc89080644editdlrm
nameserver.cpython-39.pyc89080644editdlrm
node.cpython-39.opt-1.pyc116050644editdlrm
node.cpython-39.pyc116050644editdlrm
opcode.cpython-39.opt-1.pyc24750644editdlrm
opcode.cpython-39.pyc24750644editdlrm
query.cpython-39.opt-1.pyc402980644editdlrm
query.cpython-39.pyc403430644editdlrm
rcode.cpython-39.opt-1.pyc32530644editdlrm
rcode.cpython-39.pyc32530644editdlrm
rdata.cpython-39.opt-1.pyc236090644editdlrm
rdata.cpython-39.pyc236090644editdlrm
rdataclass.cpython-39.opt-1.pyc27920644editdlrm
rdataclass.cpython-39.pyc27920644editdlrm
rdataset.cpython-39.opt-1.pyc154370644editdlrm
rdataset.cpython-39.pyc154510644editdlrm
rdatatype.cpython-39.opt-1.pyc66730644editdlrm
rdatatype.cpython-39.pyc66730644editdlrm
renderer.cpython-39.opt-1.pyc98220644editdlrm
renderer.cpython-39.pyc98410644editdlrm
resolver.cpython-39.opt-1.pyc524720644editdlrm
resolver.cpython-39.pyc526250644editdlrm
reversename.cpython-39.opt-1.pyc30550644editdlrm
reversename.cpython-39.pyc30550644editdlrm
rrset.cpython-39.opt-1.pyc78850644editdlrm
rrset.cpython-39.pyc78990644editdlrm
serial.cpython-39.opt-1.pyc29330644editdlrm
serial.cpython-39.pyc29330644editdlrm
set.cpython-39.opt-1.pyc87990644editdlrm
set.cpython-39.pyc87990644editdlrm
tokenizer.cpython-39.opt-1.pyc172420644editdlrm
tokenizer.cpython-39.pyc172560644editdlrm
transaction.cpython-39.opt-1.pyc202610644editdlrm
transaction.cpython-39.pyc202610644editdlrm
tsig.cpython-39.opt-1.pyc103810644editdlrm
tsig.cpython-39.pyc103810644editdlrm
tsigkeyring.cpython-39.opt-1.pyc18350644editdlrm
tsigkeyring.cpython-39.pyc18350644editdlrm
ttl.cpython-39.opt-1.pyc16800644editdlrm
ttl.cpython-39.pyc16800644editdlrm
update.cpython-39.opt-1.pyc88860644editdlrm
update.cpython-39.pyc88860644editdlrm
version.cpython-39.opt-1.pyc5630644editdlrm
version.cpython-39.pyc5630644editdlrm
versioned.cpython-39.opt-1.pyc87230644editdlrm
versioned.cpython-39.pyc87750644editdlrm
win32util.cpython-39.opt-1.pyc56530644editdlrm
win32util.cpython-39.pyc56530644editdlrm
wire.cpython-39.opt-1.pyc33270644editdlrm
wire.cpython-39.pyc33550644editdlrm
xfr.cpython-39.opt-1.pyc77710644editdlrm
xfr.cpython-39.pyc77890644editdlrm
zone.cpython-39.opt-1.pyc452680644editdlrm
zone.cpython-39.pyc454120644editdlrm
zonefile.cpython-39.opt-1.pyc176630644editdlrm
zonefile.cpython-39.pyc176870644editdlrm
zonetypes.cpython-39.opt-1.pyc10230644editdlrm
zonetypes.cpython-39.pyc10230644editdlrm
_asyncbackend.cpython-39.opt-1.pyc42080644editdlrm
_asyncbackend.cpython-39.pyc42080644editdlrm
_asyncio_backend.cpython-39.opt-1.pyc89840644editdlrm
_asyncio_backend.cpython-39.pyc90020644editdlrm
_ddr.cpython-39.opt-1.pyc40710644editdlrm
_ddr.cpython-39.pyc40710644editdlrm
_features.cpython-39.opt-1.pyc23670644editdlrm
_features.cpython-39.pyc23670644editdlrm
_immutable_ctx.cpython-39.opt-1.pyc21590644editdlrm
_immutable_ctx.cpython-39.pyc21590644editdlrm
__init__.cpython-39.opt-1.pyc6670644editdlrm
__init__.cpython-39.pyc6670644editdlrm
Edit: /usr/lib/python3.9/site-packages/dns/__pycache__/exception.cpython-39.pyc (5714B)
a àMÒeEã@sÆdZddlmZmZGdd„deƒZGdd„deƒZGdd„deƒZGd d „d eƒZGd d „d eƒZ Gd d„deƒZ Gdd„deƒZ Gdd„de ƒZ Gdd„deƒZ Gdd„deƒZGdd„dƒZdS)z…Common DNS Exceptions. Dnspython modules may also define their own exceptions, which will always be subclasses of ``DNSException``. é)ÚOptionalÚSetcsxeZdZUdZdZeeed<eƒZ e eed<dZ eeed<‡fdd„Z dd „Z d d „Zd d „Z‡fdd„Z‡ZS)Ú DNSExceptionaõAbstract base class shared by all dnspython exceptions. It supports two basic modes of operation: a) Old/compatible mode is used if ``__init__`` was called with empty *kwargs*. In compatible mode all *args* are passed to the standard Python Exception class as before and all *args* are printed by the standard ``__str__`` implementation. Class variable ``msg`` (or doc string if ``msg`` is ``None``) is returned from ``str()`` if *args* is empty. b) New/parametrized mode is used if ``__init__`` was called with non-empty *kwargs*. In the new mode *args* must be empty and all kwargs must match those set in class variable ``supp_kwargs``. All kwargs are stored inside ``self.kwargs`` and used in a new ``__str__`` implementation to construct a formatted message based on the ``fmt`` class variable, a ``string``. In the simplest case it is enough to override the ``supp_kwargs`` and ``fmt`` class variables to get nice parametrized messages. NÚmsgÚ supp_kwargsÚfmtcsp|j|i|¤Ž|r2|jfi|¤Ž|_t|ƒ|_ntƒ|_|jdurL|j|_|r^tƒj|Žntƒ |j¡dS©N) Ú _check_paramsÚ _check_kwargsÚkwargsÚstrrÚdictÚ__doc__ÚsuperÚ__init__©ÚselfÚargsr ©Ú __class__©ú1/usr/lib/python3.9/site-packages/dns/exception.pyr7s  zDNSException.__init__cOs$|s|r t|ƒt|ƒks Jdƒ‚dS)zsOld exceptions supported only args and not kwargs. For sanity we do not allow to mix old and new behavior.z=keyword arguments are mutually exclusive with positional argsN)Úboolrrrrr Gs ÿþzDNSException._check_paramscKs(|r$t| ¡ƒ|jks$Jd|jƒ‚|S)Nz-following set of keyword args is required: %s)ÚsetÚkeysr)rr rrrr Ps ÿþzDNSException._check_kwargscKsdi}| ¡D]R\}}t|ttfƒrVttt|ƒƒ||<t||ƒdkr^|| ¡||<q |||<q |S)z˜Format kwargs before printing them. Resulting dictionary has to have keys necessary for str.format call on fmt class variable. é)ÚitemsÚ isinstanceÚlistrÚmapr ÚlenÚpop)rr ÚfmtargsÚkwÚdatarrrÚ _fmt_kwargsWs zDNSException._fmt_kwargscs>|jr0|jr0|jfi|j¤Ž}|jjfi|¤ŽStƒ ¡SdSr)r rr%ÚformatrÚ__str__)rr"rrrr'is zDNSException.__str__)Ú__name__Ú __module__Ú __qualname__rrrr Ú__annotations__rrrrrr r r%r'Ú __classcell__rrrrrs   rc@seZdZdZdS)Ú FormErrorzDNS message is malformed.N©r(r)r*rrrrrr-ssr-c@seZdZdZdS)Ú SyntaxErrorzText input is malformed.Nr.rrrrr/wsr/c@seZdZdZdS)Ú UnexpectedEndzText input ended unexpectedly.Nr.rrrrr0{sr0c@seZdZdZdS)ÚTooBigzThe DNS message is too big.Nr.rrrrr1sr1cs*eZdZdZdhZdZ‡fdd„Z‡ZS)ÚTimeoutzThe DNS operation timed out.Útimeoutz7The DNS operation timed out after {timeout:.3f} secondscstƒj|i|¤ŽdSr)rrrrrrr‹szTimeout.__init__)r(r)r*rrrrr,rrrrr2ƒsr2c@seZdZdZdS)ÚUnsupportedAlgorithmz&The DNSSEC algorithm is not supported.Nr.rrrrr4�sr4c@seZdZdZdS)ÚAlgorithmKeyMismatchz=The DNSSEC algorithm is not supported for the given key type.Nr.rrrrr5“sr5c@seZdZdZdS)ÚValidationFailurez The DNSSEC signature is invalid.Nr.rrrrr6—sr6c@seZdZdZdS)ÚDeniedByPolicyzDenied by DNSSEC policy.Nr.rrrrr7›sr7c@s$eZdZdd„Zdd„Zdd„ZdS)ÚExceptionWrappercCs ||_dSr)Úexception_class)rr9rrrr szExceptionWrapper.__init__cCs|Srr)rrrrÚ __enter__£szExceptionWrapper.__enter__cCs(|dur$t||jƒs$| t|ƒ¡|‚dS)NF)rr9r )rÚexc_typeZexc_valZexc_tbrrrÚ__exit__¦szExceptionWrapper.__exit__N)r(r)r*rr:r<rrrrr8Ÿsr8N)rÚtypingrrÚ Exceptionrr-r/r0r1r2r4r5r6r7r8rrrrÚsW