ó !`Nc@s)dZddlZdZdZdZdZdZdZd Z d Z d Z d Z d Z dZi ed6ed6ed6ed6ed6ed6e d6e d6e d6e 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_flagsMs cCsO|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 R Rtdictt iteritemstxtyR!t exceptiont DNSExceptionR RRR R#(((s//usr/lib64/python2.7/site-packages/dns/rcode.pyts@  1