ó !`Nc@s×dZddlZdZdZdZdZdZied6ed 6ed 6ed 6ed 6Ze gej ƒD]\Z Z e e f^qiƒZ d ejjfd„ƒYZd„Zd„Zd„Zd„Zd„ZdS(s DNS Opcodes.iÿÿÿÿNiiiiitQUERYtIQUERYtSTATUStNOTIFYtUPDATEt UnknownOpcodecBseZdZRS(sRaised if an opcode is unknown.(t__name__t __module__t__doc__(((s0/usr/lib64/python2.7/site-packages/dns/opcode.pyR)scCse|jƒr7t|ƒ}|dkr7|dkr7|Sntj|jƒƒ}|dkrat‚n|S(sžConvert text into an opcode. @param text: the textual opcode @type text: string @raises UnknownOpcode: the opcode is unknown @rtype: int iiN(tisdigittintt_by_texttgettuppertNoneR(ttexttvalue((s0/usr/lib64/python2.7/site-packages/dns/opcode.pyt from_text-s    cCs |d@d?S(sUExtract an opcode from DNS message flags. @param flags: int @rtype: int ixi ((tflags((s0/usr/lib64/python2.7/site-packages/dns/opcode.pyt from_flags?scCs |d>d@S(s`Convert an opcode to a value suitable for ORing into DNS message flags. @rtype: int i ix((R((s0/usr/lib64/python2.7/site-packages/dns/opcode.pytto_flagsHscCs.tj|ƒ}|dkr*t|ƒ}n|S(s–Convert an opcode to text. @param value: the opcdoe @type value: int @raises UnknownOpcode: the opcode is unknown @rtype: string N(t _by_valueR Rtstr(RR((s0/usr/lib64/python2.7/site-packages/dns/opcode.pytto_textPs  cCst|ƒtkrtStS(snTrue if the opcode in flags is UPDATE. @param flags: DNS flags @type flags: int @rtype: bool (RRtTruetFalse(R((s0/usr/lib64/python2.7/site-packages/dns/opcode.pyt is_update^s(Rt dns.exceptiontdnsRRRRRR tdictt iteritemstxtyRt exceptiont DNSExceptionRRRRRR(((s0/usr/lib64/python2.7/site-packages/dns/opcode.pyts&  1