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/2/root/usr/lib/python2.4/site-packages/dns/rcode.pyc
mò
!`Nc@sFdZdkZdZdZdZdZdZdZdZ	d	Z
d
ZdZdZ
d
Zhde<de<de<de<de<de<de	<de
<de<de<de
<de<ZegZeiƒD]\ZZeeefqİ[ƒZdeiifd„ƒYZd„Zd„Zd„Zd„ZdS( sDNS Result Codes.Niiiiiiiiii	i
itNOERRORtFORMERRtSERVFAILtNXDOMAINtNOTIMPtREFUSEDtYXDOMAINtYXRRSETtNXRRSETtNOTAUTHtNOTZONEtBADVERStUnknownRcodecBstZdZRS(sRaised if an rcode is unknown.(t__name__t
__module__t__doc__(((t-/usr/lib/python2.4/site-packages/dns/rcode.pyR7scCso|iƒo2t|ƒ}|djo|djo|Sq?nti|iƒƒ}|djo
t‚n|S(s™Convert text into an rcode.

    @param text: the texual rcode
    @type text: string
    @raises UnknownRcode: the rcode is unknown
    @rtype: int
    iiÿN(	ttexttisdigittinttvt_by_texttgettuppertNoneR(RR((Rt	from_text;s


cCsD|d@|d?d@B}|djp
|djotdƒ‚n|S(sîReturn the rcode value encoded by flags and ednsflags.

    @param flags: the DNS flags
    @type flags: int
    @param ednsflags: the EDNS flags
    @type ednsflags: int
    @raises ValueError: rcode is < 0 or > 4095
    @rtype: int
    iiiğiiÿsrcode must be >= 0 and <= 4095N(tflagst	ednsflagstvaluet
ValueError(RRR((Rt
from_flagsMs
	cCsR|djp
|djotdƒ‚n|d@}t|d@ƒd>}||fS(s½Return a (flags, ednsflags) tuple which encodes the rcode.

    @param value: the rcode
    @type value: int
    @raises ValueError: rcode is < 0 or > 4095
    @rtype: (int, int) tuple
    iiÿsrcode must be >= 0 and <= 4095iiğiN(RRRtlongtev(RR R((Rtto_flags]s
cCs0ti|ƒ}|djot|ƒ}n|S(sbConvert rcode into text.

    @param value: the rcode
    @type value: int
    @rtype: string
    N(t	_by_valueRRRRtstr(RR((Rtto_textls

(Rt
dns.exceptiontdnsRRRRRRRRRR	R
RRtdictt_[1]t	iteritemstxtyR"t	exceptiontDNSExceptionRRRR!R$(RR$RRRRR!R
RRR&RRRRRRR	R"R(RR+R*((Rt?s(	r9