Your IP : 3.144.252.243


Current Path : /lib64/python2.7/site-packages/dns/
Upload File :
Current File : //lib64/python2.7/site-packages/dns/rdatatype.pyc

�
]�aPc@s�dZddlZddlZdZdZdZdZdZdZ	d	Z
d
ZdZdZ
d
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ d Z!d!Z"d"Z#d#Z$d$Z%d%Z&d&Z'd'Z(d(Z)d)Z*d*Z+d+Z,d,Z-d-Z.d.Z/d/Z0d0Z1d1Z2d2Z3d3Z4d4Z5d5Z6d6Z7d7Z8d8Z9d9Z:d:Z;d;Z<d<Z=d=Z>d>Z?d?Z@i=ed@6edA6edB6edC6edD6e	dE6e
dF6edG6edH6e
dI6edJ6edK6edL6edM6edN6edO6edP6edQ6edR6edS6edT6edU6edV6edW6edX6edY6edZ6ed[6e d\6e!d]6e"d^6e#d_6e$d`6e%da6e&db6e'dc6e(dd6e)de6e*df6e+dg6e,dh6e-di6e.dj6e/dk6e0dl6e1dm6e2dn6e3do6e4dp6e5dq6e6dr6e7ds6e8dt6e9du6e:dv6e;dw6e<dx6e=dy6e>dz6e?d{6e@d|6ZAeBgeAjC�D]\ZDZEeEeDf^qM�ZFieGe)6ZHieGe
6eGe"6eGe(6eGe/6ZIejJd}ejK�ZLd~ejMjNfd��YZOd��ZPd��ZQd��ZRd��ZSdS(�sDNS Rdata Types.

@var _by_text: The rdata type textual name to value mapping
@type _by_text: dict
@var _by_value: The rdata type value to textual name mapping
@type _by_value: dict
@var _metatypes: If an rdatatype is a metatype, there will be a mapping
whose key is the rdatatype value and whose value is True in this dictionary.
@type _metatypes: dict
@var _singletons: If an rdatatype is a singleton, there will be a mapping
whose key is the rdatatype value and whose value is True in this dictionary.
@type _singletons: dicti����Niiiiiiiiii	i
iii
iiiiiiiiiiiiiiiiii!i#i$i%i&i'i)i*i+i,i-i.i/i0i1i2i3i4i7icigi�i�i�i�i�i�i�i�i�tNONEtAtNStMDtMFtCNAMEtSOAtMBtMGtMRtNULLtWKStPTRtHINFOtMINFOtMXtTXTtRPtAFSDBtX25tISDNtRTtNSAPsNSAP-PTRtSIGtKEYtPXtGPOStAAAAtLOCtNXTtSRVtNAPTRtKXtCERTtA6tDNAMEtOPTtAPLtDStSSHFPtIPSECKEYtRRSIGtNSECtDNSKEYtDHCIDtNSEC3t
NSEC3PARAMtTLSAtHIPtSPFtUNSPECtTKEYtTSIGtIXFRtAXFRtMAILBtMAILAtANYtTAtDLVs
TYPE([0-9]+)$tUnknownRdatatypecBseZdZRS(sRaised if a type is unknown.(t__name__t
__module__t__doc__(((s3/usr/lib64/python2.7/site-packages/dns/rdatatype.pyR<�scCs�tj|j��}|dkr�tj|�}|dkrEt�nt|jd��}|dksr|dkr�t	d��q�n|S(s�Convert text into a DNS rdata type value.
    @param text: the text
    @type text: string
    @raises dns.rdatatype.UnknownRdatatype: the type is unknown
    @raises ValueError: the rdata type value is not >= 0 and <= 65535
    @rtype: intiii��s&type must be between >= 0 and <= 65535N(
t_by_texttgettuppertNonet_unknown_type_patterntmatchR<tinttgroupt
ValueError(ttexttvalueRE((s3/usr/lib64/python2.7/site-packages/dns/rdatatype.pyt	from_text�s	cCsT|dks|dkr'td��ntj|�}|dkrPd|
}n|S(s�Convert a DNS rdata type to text.
    @param value: the rdata type value
    @type value: int
    @raises ValueError: the rdata type value is not >= 0 and <= 65535
    @rtype: stringii��s&type must be between >= 0 and <= 65535tTYPEN(RHt	_by_valueRARC(RJRI((s3/usr/lib64/python2.7/site-packages/dns/rdatatype.pytto_text�scCs/|tkr|tks'tj|�r+tStS(sbTrue if the type is a metatype.
    @param rdtype: the type
    @type rdtype: int
    @rtype: bool(R3R9t
_metatypesthas_keytTruetFalse(trdtype((s3/usr/lib64/python2.7/site-packages/dns/rdatatype.pytis_metatype�s'cCstj|�rtStS(scTrue if the type is a singleton.
    @param rdtype: the type
    @type rdtype: int
    @rtype: bool(t_singletonsRPRQRR(RS((s3/usr/lib64/python2.7/site-packages/dns/rdatatype.pytis_singleton�s(TR?tret
dns.exceptiontdnsRRRRRRRRRR	R
RRR
RRRRRRRRRtNSAP_PTRRRRRRRRRRR R!R"R#R$R%R&R'R(R)R*R+R,R-R.R/R0R1R2R3R4R5R6R7R8R9R:R;R@tdictt	iteritemstxtyRMRQRORUtcompiletIRDt	exceptiontDNSExceptionR<RKRNRTRV(((s3/usr/lib64/python2.7/site-packages/dns/rdatatype.pyt<module>s
1

			

?>