Viewing File: /usr/lib64/python2.7/site-packages/dns/rdataclass.pyo

ó
!`Nc@s)dZddlZddlZdZdZdZdZdZdZ	ied	6ed
6ed6ed6ed
6e	d6Z
ege
jƒD]\Z
Zee
f^q‚ƒZe
jied6ed6ed6ƒiee6ee	6ZejdejƒZdejjfd„ƒYZd„Zd„Zd„ZdS(skDNS Rdata Classes.

@var _by_text: The rdata class textual name to value mapping
@type _by_text: dict
@var _by_value: The rdata class value to textual name mapping
@type _by_value: dict
@var _metaclasses: If an rdataclass is a metaclass, there will be a mapping
whose key is the rdatatype value and whose value is True in this dictionary.
@type _metaclasses: dicti˙˙˙˙Niiiiiţi˙t	RESERVED0tINtCHtHStNONEtANYtINTERNETtCHAOStHESIODsCLASS([0-9]+)$tUnknownRdataclasscBseZdZRS(sRaised when a class is unknown.(t__name__t
__module__t__doc__(((s4/usr/lib64/python2.7/site-packages/dns/rdataclass.pyR	DscCsˆtj|jƒƒ}|dkr„tj|ƒ}|dkrEt‚nt|jdƒƒ}|dksr|dkr„t	dƒ‚q„n|S(súConvert text into a DNS rdata class value.
    @param text: the text
    @type text: string
    @rtype: int
    @raises dns.rdataclass.UnknownRdataclass: the class is unknown
    @raises ValueError: the rdata class value is not >= 0 and <= 65535
    iii˙˙s'class must be between >= 0 and <= 65535N(
t_by_texttgettuppertNonet_unknown_class_patterntmatchR	tinttgroupt
ValueError(ttexttvalueR((s4/usr/lib64/python2.7/site-packages/dns/rdataclass.pyt	from_textHs		cCsT|dks|dkr'tdƒ‚ntj|ƒ}|dkrPd|
}n|S(sžConvert a DNS rdata class to text.
    @param value: the rdata class value
    @type value: int
    @rtype: string
    @raises ValueError: the rdata class value is not >= 0 and <= 65535
    ii˙˙s'class must be between >= 0 and <= 65535tCLASSN(Rt	_by_valueRR(RR((s4/usr/lib64/python2.7/site-packages/dns/rdataclass.pytto_text[scCstj|ƒrtStS(smTrue if the class is a metaclass.
    @param rdclass: the rdata class
    @type rdclass: int
    @rtype: bool(t_metaclassesthas_keytTruetFalse(trdclass((s4/usr/lib64/python2.7/site-packages/dns/rdataclass.pytis_metaclassjs(Rtret
dns.exceptiontdnsRRRRRRR
tdictt	iteritemstxtyRtupdateRRtcompiletIRt	exceptiontDNSExceptionR	RRR!(((s4/usr/lib64/python2.7/site-packages/dns/rdataclass.pyt<module>s8
1	
		
Back to Directory File Manager