MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/proc/2/task/2/root/usr/lib/python2.4/site-packages/dns/rdataclass.pyc
mň
!`Nc@sAdZdkZdkZdZdZdZdZdZdZ	hde<d	e<d
e<de<de<d
e	<Z
egZe
i
ƒD]\ZZeeefqŒ[ƒZe
ihde<de<de<ƒhee<e	e<ZeideiƒZdeiifd„ƒ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: dictNiiiiiţi˙t	RESERVED0tINtCHtHStNONEtANYtINTERNETtCHAOStHESIODsCLASS([0-9]+)$tUnknownRdataclasscBstZdZRS(sRaised when a class is unknown.(t__name__t
__module__t__doc__(((t2/usr/lib/python2.4/site-packages/dns/rdataclass.pyR	DscCsti|iƒƒ}|djoiti|ƒ}|djo
t‚nt	|i
dƒƒ}|djp
|djotdƒ‚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_texttgetttexttuppertvaluetNonet_unknown_class_patterntmatchR	tinttgroupt
ValueError(RRR((R
t	from_textHs


cCsY|djp
|djotdƒ‚nti|ƒ}|djod|
}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(RRt	_by_valueRRR(RR((R
tto_text[s
cCsti|ƒotSntS(smTrue if the class is a metaclass.
    @param rdclass: the rdata class
    @type rdclass: int
    @rtype: boolN(t_metaclassesthas_keytrdclasstTruetFalse(R((R
tis_metaclassjs(Rtret
dns.exceptiontdnsRRRRRRRtdictt_[1]t	iteritemstxtyRtupdateR RtcompiletIRt	exceptiontDNSExceptionR	RRR"(RRRRRR	RRRR'R#RR%RR*R)RRR"((R
t?s"		<
9(