GhostManSec
Server: Apache
System: Linux s323.xrea.com 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: moonarc (17751)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/dns/opcode.pyc
�
�b�Wc@s�dZddlZdZdZdZdZdZied6ed	6ed
6ed6ed6Ze	d
�ej
�D��Zdejj
fd��YZd�Zd�Zd�Zd�Zd�ZdS(sDNS Opcodes.i����NiiiiitQUERYtIQUERYtSTATUStNOTIFYtUPDATEccs!|]\}}||fVqdS(N((t.0txty((s./usr/lib/python2.7/site-packages/dns/opcode.pys	<genexpr>&st
UnknownOpcodecBseZdZRS(sAn DNS opcode is unknown.(t__name__t
__module__t__doc__(((s./usr/lib/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((s./usr/lib/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((s./usr/lib/python2.7/site-packages/dns/opcode.pyt
from_flagsAscCs|d>d@S(s`Convert an opcode to a value suitable for ORing into DNS message
    flags.
    @rtype: int
    iix((R((s./usr/lib/python2.7/site-packages/dns/opcode.pytto_flagsKscCs.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_valueRRtstr(RR((s./usr/lib/python2.7/site-packages/dns/opcode.pytto_textTs	cCst|�tkS(snTrue if the opcode in flags is UPDATE.

    @param flags: DNS flags
    @type flags: int
    @rtype: bool
    (RR(R((s./usr/lib/python2.7/site-packages/dns/opcode.pyt	is_updatecs(Rt
dns.exceptiontdnsRRRRRRtdicttitemsRt	exceptiontDNSExceptionRRRRRR(((s./usr/lib/python2.7/site-packages/dns/opcode.pyt<module>s&