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/cwd/usr/lib/python2.4/site-packages/dns/opcode.pyc
mò
!`Nc@sædZdkZdZdZdZdZdZhde<de<d	e<d
e<de<Ze	gZ
eiƒD]\ZZ
e
e
efqt[
ƒZdeiifd
„ƒYZd„Zd„Zd„Zd„Zd„ZdS(sDNS Opcodes.NiiiiitQUERYtIQUERYtSTATUStNOTIFYtUPDATEt
UnknownOpcodecBstZdZRS(sRaised if an opcode is unknown.(t__name__t
__module__t__doc__(((t./usr/lib/python2.4/site-packages/dns/opcode.pyR)scCso|iƒo2t|ƒ}|djo|djo|Sq?nti|iƒƒ}|djo
t‚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(	ttexttisdigittinttvaluet_by_texttgettuppertNoneR(R
R
((R	t	from_text-s


cCs|d@d?S(sUExtract an opcode from DNS message flags.

    @param flags: int
    @rtype: int
    ixiN(tflags(R((R	t
from_flags?scCs|d>d@S(s`Convert an opcode to a value suitable for ORing into DNS message
    flags.
    @rtype: int
    iixN(R
(R
((R	tto_flagsHscCs0ti|ƒ}|djot|ƒ}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_valueRR
R
Rtstr(R
R
((R	tto_textPs

cCst|ƒtjotSntS(snTrue if the opcode in flags is UPDATE.

    @param flags: DNS flags
    @type flags: int
    @rtype: bool
    N(RRRtTruetFalse(R((R	t	is_update^s(Rt
dns.exceptiontdnsRRRRRRtdictt_[1]t	iteritemstxtyRt	exceptiontDNSExceptionRRRRRR(RRRRRRRRRRRR!R"RRRR((R	t?s	39