ok

Mini Shell

Direktori : /proc/self/root/proc/self/root/proc/thread-self/root/lib64/python2.7/site-packages/dns/
Upload File :
Current File : //proc/self/root/proc/self/root/proc/thread-self/root/lib64/python2.7/site-packages/dns/rcode.pyo

�
!`Nc@s)dZddlZdZdZdZdZdZdZd	Z	d
Z
dZdZd
Z
dZied6ed6ed6ed6ed6ed6e	d6e
d6ed6ed6e
d6ed6Zegej�D]\ZZeef^q��Zdejjfd��YZd�Zd�Zd�Zd �ZdS(!sDNS Result Codes.i����Niiiiiiiiii	i
itNOERRORtFORMERRtSERVFAILtNXDOMAINtNOTIMPtREFUSEDtYXDOMAINtYXRRSETtNXRRSETtNOTAUTHtNOTZONEtBADVERStUnknownRcodecBseZdZRS(sRaised if an rcode is unknown.(t__name__t
__module__t__doc__(((s//usr/lib64/python2.7/site-packages/dns/rcode.pyR7scCse|j�r7t|�}|dkr7|dkr7|Sntj|j��}|dkrat�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(tisdigittintt_by_texttgettuppertNoneR(ttexttv((s//usr/lib64/python2.7/site-packages/dns/rcode.pyt	from_text;s		cCsA|d@|d?d@B}|dks.|dkr=td��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 <= 4095(t
ValueError(tflagst	ednsflagstvalue((s//usr/lib64/python2.7/site-packages/dns/rcode.pyt
from_flagsMscCsO|dks|dkr'td��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�i(Rtlong(RRtev((s//usr/lib64/python2.7/site-packages/dns/rcode.pytto_flags]s
	
cCs.tj|�}|dkr*t|�}n|S(sbConvert rcode into text.

    @param value: the rcode
    @type value: int
    @rtype: string
    N(t	_by_valueRRtstr(RR((s//usr/lib64/python2.7/site-packages/dns/rcode.pytto_textls(Rt
dns.exceptiontdnsRRRRRRRRRR	R
RRtdictt	iteritemstxtyR!t	exceptiontDNSExceptionRRRR R#(((s//usr/lib64/python2.7/site-packages/dns/rcode.pyt<module>s@
1			

Zerion Mini Shell 1.0