/usr/lib/python3.6/site-packages/dns/__pycache__
NameSizeModeActions
dnssec.cpython-36.opt-1.pyc108440644editdlrm
dnssec.cpython-36.pyc109150644editdlrm
e164.cpython-36.opt-1.pyc26630644editdlrm
e164.cpython-36.pyc26630644editdlrm
edns.cpython-36.opt-1.pyc44070644editdlrm
edns.cpython-36.pyc44070644editdlrm
entropy.cpython-36.opt-1.pyc32830644editdlrm
entropy.cpython-36.pyc32830644editdlrm
exception.cpython-36.opt-1.pyc36970644editdlrm
exception.cpython-36.pyc39080644editdlrm
flags.cpython-36.opt-1.pyc21700644editdlrm
flags.cpython-36.pyc21700644editdlrm
grange.cpython-36.opt-1.pyc9040644editdlrm
grange.cpython-36.pyc9620644editdlrm
hash.cpython-36.opt-1.pyc4750644editdlrm
hash.cpython-36.pyc4750644editdlrm
inet.cpython-36.opt-1.pyc23160644editdlrm
inet.cpython-36.pyc23160644editdlrm
ipv4.cpython-36.opt-1.pyc13580644editdlrm
ipv4.cpython-36.pyc13580644editdlrm
ipv6.cpython-36.opt-1.pyc29880644editdlrm
ipv6.cpython-36.pyc29880644editdlrm
message.cpython-36.opt-1.pyc326220644editdlrm
message.cpython-36.pyc326220644editdlrm
name.cpython-36.opt-1.pyc271260644editdlrm
name.cpython-36.pyc271260644editdlrm
namedict.cpython-36.opt-1.pyc28550644editdlrm
namedict.cpython-36.pyc28550644editdlrm
node.cpython-36.opt-1.pyc55340644editdlrm
node.cpython-36.pyc55340644editdlrm
opcode.cpython-36.opt-1.pyc20500644editdlrm
opcode.cpython-36.pyc20500644editdlrm
query.cpython-36.opt-1.pyc137480644editdlrm
query.cpython-36.pyc137480644editdlrm
rcode.cpython-36.opt-1.pyc24870644editdlrm
rcode.cpython-36.pyc24870644editdlrm
rdata.cpython-36.opt-1.pyc143550644editdlrm
rdata.cpython-36.pyc143550644editdlrm
rdataclass.cpython-36.opt-1.pyc25080644editdlrm
rdataclass.cpython-36.pyc25080644editdlrm
rdataset.cpython-36.opt-1.pyc95110644editdlrm
rdataset.cpython-36.pyc95500644editdlrm
rdatatype.cpython-36.opt-1.pyc45010644editdlrm
rdatatype.cpython-36.pyc45010644editdlrm
renderer.cpython-36.opt-1.pyc97400644editdlrm
renderer.cpython-36.pyc98270644editdlrm
resolver.cpython-36.opt-1.pyc357760644editdlrm
resolver.cpython-36.pyc357760644editdlrm
reversename.cpython-36.opt-1.pyc25930644editdlrm
reversename.cpython-36.pyc25930644editdlrm
rrset.cpython-36.opt-1.pyc52390644editdlrm
rrset.cpython-36.pyc52390644editdlrm
set.cpython-36.opt-1.pyc79030644editdlrm
set.cpython-36.pyc79030644editdlrm
tokenizer.cpython-36.opt-1.pyc145070644editdlrm
tokenizer.cpython-36.pyc145070644editdlrm
tsig.cpython-36.opt-1.pyc62090644editdlrm
tsig.cpython-36.pyc62090644editdlrm
tsigkeyring.cpython-36.opt-1.pyc10550644editdlrm
tsigkeyring.cpython-36.pyc10550644editdlrm
ttl.cpython-36.opt-1.pyc13200644editdlrm
ttl.cpython-36.pyc13200644editdlrm
update.cpython-36.opt-1.pyc70940644editdlrm
update.cpython-36.pyc70940644editdlrm
version.cpython-36.opt-1.pyc4500644editdlrm
version.cpython-36.pyc4500644editdlrm
wiredata.cpython-36.opt-1.pyc23210644editdlrm
wiredata.cpython-36.pyc23210644editdlrm
zone.cpython-36.opt-1.pyc301370644editdlrm
zone.cpython-36.pyc301370644editdlrm
_compat.cpython-36.opt-1.pyc12990644editdlrm
_compat.cpython-36.pyc12990644editdlrm
__init__.cpython-36.opt-1.pyc5850644editdlrm
__init__.cpython-36.pyc5850644editdlrm
Edit: /usr/lib/python3.6/site-packages/dns/__pycache__/rrset.cpython-36.pyc (5239B)
3 $Wk@sldZddlZddlZddlZddlZddlmZGdddejj Z dddZ d d Z dd d Z d dZdS)z)DNS RRsets (an RRset is a named rdataset)N) string_typescseZdZdZddgZejjdffdd ZfddZ d d Z d d Z fd dZ dfdd Z dfdd Zdfdd ZddZZS)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. namedeletingNcs$tt|j|||||_||_dS)zCreate a new RRset.N)superr__init__rr)selfrrdclassrdtypecoversr) __class__/usr/lib/python3.6/rrset.pyr'szRRset.__init__cs"tt|j}|j|_|j|_|S)N)rr_clonerr)r obj)r rrr/sz RRset._clonecCs|jdkrd}ndtjj|jd}|jdk rDdtjj|j}nd}dt|jdtjj|jdtjj|j ||dS) Nr()z delete=z) r dns rdatatypeto_textr rdataclassstrrr r )r ZctextZdtextrrr__repr__5s  zRRset.__repr__cCs|jS)N)r)r rrr__str__Bsz RRset.__str__cs.t|tsdS|j|jkrdStt|j|S)zcTwo RRsets are equal if they have the same name and the same rdataset @rtype: boolF) isinstancerrr__eq__)r other)r rrrEs   z RRset.__eq__cs4tt|j|||sdS|j|ks,|j|kr0dSdS)zaReturns True if this rrset matches the specified class, type, covers, and deletion state.FT)rrmatchrr)r rr r r r)r rrr Ps z RRset.matchTc stt|j|j|||jf|S)aConvert the RRset into DNS master file format. @see: L{dns.name.Name.choose_relativity} for more information on how I{origin} and I{relativize} determine the way names are emitted. Any additional keyword arguments are passed on to the rdata to_text() method. @param origin: The origin for relative names, or None. @type origin: dns.name.Name object @param relativize: True if names should names be relativized @type relativize: bool)rrrrr)r originZ relativizekw)r rrrZsz RRset.to_textc s tt|j|j||||jf|S)z!Convert the RRset to wire format.)rrto_wirerr)r filecompressr!r")r rrr#lsz RRset.to_wirecCstjj|jt|S)zYConvert an RRset into an Rdataset. @rtype: dns.rdataset.Rdataset object )rrdatasetfrom_rdata_listttllist)r rrr to_rdatasetrszRRset.to_rdataset)N)NT)NN)__name__ __module__ __qualname____doc__ __slots__rrZNONErrrrrr rr#r* __classcell__rr)r rrs     rc Cst|trtjj|d|d}t|tr2tjj|}t|trHtjj|}t|||}|j|x*|D]"}tj j|j |j |}|j |qdW|S)zCreate an RRset with the specified name, TTL, class, and type, and with the specified list of rdatas in text format. @rtype: dns.rrset.RRset object N) idna_codec) rrrr from_textrrr update_ttlZrdatar r add) rr(r r text_rdatasr1rtrdrrrfrom_text_listzs        r9cGst|||||S)zCreate an RRset with the specified name, TTL, class, and type and with the specified rdatas in text format. @rtype: dns.rrset.RRset object )r9)rr(r r r5rrrr2sr2cCsrt|trtjj|d|d}t|dkr0tdd}x8|D]0}|dkr`t||j|j }|j ||j |q:W|S)zCreate an RRset with the specified name and TTL, and with the specified list of rdata objects. @rtype: dns.rrset.RRset object N)r1rzrdata list must not be empty) rrrrr2len ValueErrorrr r r3r4)rr(rdatasr1r6r8rrrr's    r'cGs t|||S)zCreate an RRset with the specified name and TTL, and with the specified rdata objects. @rtype: dns.rrset.RRset object )r')rr(r<rrr from_rdatasr=)N)N)r.Zdns.namerZ dns.rdatasetZdns.rdataclassZ dns.rendererZ_compatrr&ZRdatasetrr9r2r'r=rrrrs a