/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__/rrset.cpython-39.pyc (7899B)
a Me# @sNdZddlmZmZmZmZmZmZddlZ ddl Z ddl Z ddl Z Gddde j jZdee jjefeee jjefee jjefeeee jjee jjeee jjed dd Zee jjefeee jjefee jjefeed d d Zdee jjefeee jjee jjed ddZee jjefeeedddZdS)z)DNS RRsets (an RRset is a named rdataset))Any CollectionDictOptionalUnioncastNcs<eZdZdZddgZejjdfejj ej j ejj ejj e ej j dfdd Zfdd Zd d Zd d ZfddZeeedfdd Zd ejj ej j ejj ejj e ej j edfdd Zd!e ejj eeeefedfdd Zd"ee ejje ejj eeefedfdd ZejjdddZZ S)#RRseta6A DNS RRset (named rdataset). RRset inherits from Rdataset, and RRsets can be treated as Rdatasets in most cases. There are, however, a few notable exceptions. RRsets have different to_wire() and to_text() method arguments, reflecting the fact that RRsets always have an owner name. namedeletingN)r rdclassrdtypecoversr cs t|||||_||_dS)zCreate a new RRset.N)super__init__r r selfr r r r r  __class__-/usr/lib/python3.9/site-packages/dns/rrset.pyr(s zRRset.__init__cst}|j|_|j|_|SN)r_cloner r )robjrrrr6s z RRset._clonecCs|jdkrd}ndtj|jd}|jdurDdtj|j}nd}dt|jdtj|jdtj|j ||d| d S) Nr()z delete=z) r dns rdatatypeto_textr rdataclassstrr r r Z _rdata_repr)rZctextZdtextrrr__repr__<s8      zRRset.__repr__cCs|Sr)r rrrr__str__Ssz RRset.__str__cs:t|tr|j|jkr.dSnt|tjjs.dSt|S)NF) isinstancerr rrdatasetRdatasetr__eq__)rotherrrrr)Vs   z RRset.__eq__)argskwargsreturncs8t|dtjjr"|j|i|Stj|i|SdS)aDoes this rrset match the specified attributes? Behaves as :py:func:`full_match()` if the first argument is a ``dns.name.Name``, and as :py:func:`dns.rdataset.Rdataset.match()` otherwise. (This behavior fixes a design mistake where the signature of this method became incompatible with that of its superclass. The fix makes RRsets matchable as Rdatasets while preserving backwards compatibility.) rN)r&rr Name full_matchrmatch)rr+r,rrrr0^s z RRset.match)r r r r r r-cs0t|||sdS|j|ks(|j|kr,dSdS)ztReturns ``True`` if this rrset matches the specified name, class, type, covers, and deletion state. FT)rr0r r rrrrr/os zRRset.full_matchT)origin relativizekwr-c stj|j|||jfi|S)aConvert the RRset into DNS zone file format. See ``dns.name.Name.choose_relativity`` for more information on how *origin* and *relativize* determine the way names are emitted. Any additional keyword arguments are passed on to the rdata ``to_text()`` method. *origin*, a ``dns.name.Name`` or ``None``, the origin for relative names. *relativize*, a ``bool``. If ``True``, names will be relativized to *origin*. )rr r r )rr1r2r3rrrr s  z RRset.to_text)filecompressr1r3r-c s tj|j||||jfi|S)zConvert the RRset to wire format. All keyword arguments are passed to ``dns.rdataset.to_wire()``; see that function for details. Returns an ``int``, the number of records emitted. )rto_wirer r )rr4r5r1r3rrrr6s z RRset.to_wire)r-cCstj|jt|S)zYConvert an RRset into an Rdataset. Returns a ``dns.rdataset.Rdataset``. )rr'from_rdata_listttllistr$rrr to_rdatasetszRRset.to_rdataset)N)NT)NN)!__name__ __module__ __qualname____doc__ __slots__rrZNONEr r.r! RdataClass RdataTyperrrr#r%r)rboolr0r/rr"r Z CompressTypeintr6r'r(r: __classcell__rrrrrsV          rT) r r8r r text_rdatas idna_codecr1r2 relativize_tor-c Cst|trtjj|d|d}tjj|}tjj |}t |||} | ||D]*} tj | j | j| ||||} | | qR| S)ayCreate an RRset with the specified name, TTL, class, and type, and with the specified list of rdatas in text format. *idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA encoder/decoder to use; if ``None``, the default IDNA 2003 encoder/decoder is used. *origin*, a ``dns.name.Name`` (or ``None``), the origin to use for relative names. *relativize*, a ``bool``. If true, name will be relativized. *relativize_to*, a ``dns.name.Name`` (or ``None``), the origin to use when relativizing names. If not set, the *origin* value will be used. Returns a ``dns.rrset.RRset`` object. NrF)r&r"rr from_textr!r@ZmakerrAr update_ttlrdatar r add) r r8r r rErFr1r2rGrtrdrrrfrom_text_lists    rP)r r8r r rEr-cGst||||ttt|S)zCreate an RRset with the specified name, TTL, class, and type and with the specified rdatas in text format. Returns a ``dns.rrset.RRset`` object. )rPrrr")r r8r r rErrrrIs rI)r r8rdatasrFr-cCszt|trtjj|d|d}t|dkr0tdd}|D]0}|dur^t||j|j }| || |q8|dusvJ|S)a/Create an RRset with the specified name and TTL, and with the specified list of rdata objects. *idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA encoder/decoder to use; if ``None``, the default IDNA 2003 encoder/decoder is used. Returns a ``dns.rrset.RRset`` object. NrHrzrdata list must not be empty) r&r"rr rIlen ValueErrorrr r rJrL)r r8rQrFrMrOrrrr7s     r7)r r8rQr-cGst||tttjj|S)zCreate an RRset with the specified name and TTL, and with the specified rdata objects. Returns a ``dns.rrset.RRset`` object. )r7rrrrKRdata)r r8rQrrr from_rdatasrU)NNTN)N) r>typingrrrrrrZdns.namerZdns.rdataclassZ dns.rdatasetZ dns.rendererr'r(rr r.r"rCr!r@rrAZ IDNACodecrBrPrIrKrTr7rUrrrrsN $    ,