GhostManSec
Server: Apache
System: Linux s323.xrea.com 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: moonarc (17751)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/dns/rrset.pyo
�
�$�Wc@s�dZddlZddlZddlZddlZddlmZdejj	fd��YZ
dd�Zd�Z
dd	�Zd
�ZdS(s)DNS RRsets (an RRset is a named rdataset)i����Ni(tstring_typestRRsetcBs�eZdZddgZejjdd�Zd�Z	d�Z
d�Zd�Zdd�Z
ded	�Zddd
�Zd�ZRS(
s6A 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.
    tnametdeletingcCs2tt|�j|||�||_||_dS(sCreate a new RRset.N(tsuperRt__init__RR(tselfRtrdclasstrdtypetcoversR((s-/usr/lib/python2.7/site-packages/dns/rrset.pyR's	cCs1tt|�j�}|j|_|j|_|S(N(RRt_cloneRR(Rtobj((s-/usr/lib/python2.7/site-packages/dns/rrset.pyR
/scCs�|jdkrd}ndtjj|j�d}|jdk	r`dtjj|j�}nd}dt|j�dtjj|j	�dtjj|j
�||dS(	Nitt(t)s delete=s<DNS t s RRset>(R	tdnst	rdatatypetto_textRtNonet
rdataclasststrRRR(Rtctexttdtext((s-/usr/lib/python2.7/site-packages/dns/rrset.pyt__repr__5s	cCs
|j�S(N(R(R((s-/usr/lib/python2.7/site-packages/dns/rrset.pyt__str__BscCs?t|t�stS|j|jkr)tStt|�j|�S(scTwo RRsets are equal if they have the same name and the same
        rdataset

        @rtype: bool(t
isinstanceRtFalseRRt__eq__(Rtother((s-/usr/lib/python2.7/site-packages/dns/rrset.pyREs
cCsHtt|�j|||�s"tS|j|ks@|j|krDtStS(saReturns True if this rrset matches the specified class, type,
        covers, and deletion state.(RRtmatchRRRtTrue(RRRRR	R((s-/usr/lib/python2.7/site-packages/dns/rrset.pyRPs
cKs(tt|�j|j|||j|�S(s�Convert 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(Rtorigint
relativizetkw((s-/usr/lib/python2.7/site-packages/dns/rrset.pyRZscKs+tt|�j|j||||j|�S(s!Convert the RRset to wire format.(RRtto_wireRR(RtfiletcompressR R"((s-/usr/lib/python2.7/site-packages/dns/rrset.pyR#lscCstjj|jt|��S(sYConvert an RRset into an Rdataset.

        @rtype: dns.rdataset.Rdataset object
        (Rtrdatasettfrom_rdata_listtttltlist(R((s-/usr/lib/python2.7/site-packages/dns/rrset.pytto_rdatasetrsN(t__name__t
__module__t__doc__t	__slots__RRtNONERRR
RRRRRRR#R*(((s-/usr/lib/python2.7/site-packages/dns/rrset.pyRs				
		
c	Cs�t|t�r-tjj|dd|�}nt|t�rQtjj|�}nt|t�rutjj|�}nt|||�}|j	|�x9|D]1}tj
j|j|j|�}|j
|�q�W|S(s�Create 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
    t
idna_codecN(RRRRt	from_textRRRRt
update_ttltrdataRRtadd(	RR(RRttext_rdatasR0trtttrd((s-/usr/lib/python2.7/site-packages/dns/rrset.pytfrom_text_listzs

cGst|||||�S(s�Create 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(RRR5((s-/usr/lib/python2.7/site-packages/dns/rrset.pyR1�scCs�t|t�r-tjj|dd|�}nt|�dkrNtd��nd}xO|D]G}|dkr�t||j	|j
�}|j|�n|j|�q[W|S(s�Create an RRset with the specified name and TTL, and with
    the specified list of rdata objects.

    @rtype: dns.rrset.RRset object
    R0isrdata list must not be emptyN(
RRRRR1Rtlent
ValueErrorRRRR2R4(RR(trdatasR0R6R8((s-/usr/lib/python2.7/site-packages/dns/rrset.pyR'�s
cGst|||�S(s�Create an RRset with the specified name and TTL, and with
    the specified rdata objects.

    @rtype: dns.rrset.RRset object
    (R'(RR(R<((s-/usr/lib/python2.7/site-packages/dns/rrset.pyt
from_rdata�s(R-tdns.nameRtdns.rdatasettdns.rdataclasstdns.renderert_compatRR&tRdatasetRRR9R1R'R=(((s-/usr/lib/python2.7/site-packages/dns/rrset.pyt<module>sa