ó
    ÌÅLgª
  ã                   óf  • S r SSKrSSKr " S S\R                  R
                  5      r " S S\R                  R                  5      r	S\
S\4S	 jrS
\S\4S jrS\S\4S jrS\S\
4S jrS
\S\4S jr\R$                  r\R&                  r\R(                  r\R*                  r\R,                  rg)zDNS Opcodes.é    Nc                   óH   • \ rS rSrSrSrSrSrSr\	S 5       r
\	S 5       rS	rg
)ÚOpcodeé   r   é   é   é   é   c                 ó   • g)Né   © ©Úclss    Ú,/usr/lib/python3/dist-packages/dns/opcode.pyÚ_maximumÚOpcode._maximum$   s   € àó    c                 ó   • [         $ )N)ÚUnknownOpcoder   s    r   Ú_unknown_exception_classÚOpcode._unknown_exception_class(   s   € äÐr   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__ÚQUERYÚIQUERYÚSTATUSÚNOTIFYÚUPDATEÚclassmethodr   r   Ú__static_attributes__r   r   r   r   r      sA   † à€Eà€Fà€Fà€Fà€Fàñó ðð ñó ór   r   c                   ó   • \ rS rSrSrSrg)r   é-   zAn DNS opcode is unknown.r   N)r   r   r   r   Ú__doc__r!   r   r   r   r   r   -   s   † Ü#r   r   ÚtextÚreturnc                 ó,   • [         R                  U 5      $ )z˜Convert text into an opcode.

*text*, a ``str``, the textual opcode

Raises ``dns.opcode.UnknownOpcode`` if the opcode is unknown.

Returns an ``int``.
)r   Ú	from_text)r%   s    r   r(   r(   1   s   € ô ×Ñ˜DÓ!Ð!r   Úflagsc                 ó$   • [        U S-  S-	  5      $ )zdExtract an opcode from DNS message flags.

*flags*, an ``int``, the DNS flags.

Returns an ``int``.
é x  é   )r   ©r)   s    r   Ú
from_flagsr.   >   s   € ô �5˜6‘> bÑ(Ó)Ð)r   Úvaluec                 ó   • U S-  S-  $ )z‰Convert an opcode to a value suitable for ORing into DNS message
flags.

*value*, an ``int``, the DNS opcode value.

Returns an ``int``.
r,   r+   r   ©r/   s    r   Úto_flagsr2   I   s   € ð �R‰K˜6Ñ!Ð!r   c                 ó,   • [         R                  U 5      $ )z•Convert an opcode to text.

*value*, an ``int`` the opcode value,

Raises ``dns.opcode.UnknownOpcode`` if the opcode is unknown.

Returns a ``str``.
)r   Úto_textr1   s    r   r4   r4   U   s   € ô �>‰>˜%Ó Ð r   c                 ó:   • [        U 5      [        R                  :H  $ )zaIs the opcode in flags UPDATE?

*flags*, an ``int``, the DNS message flags.

Returns a ``bool``.
)r.   r   r   r-   s    r   Ú	is_updater6   b   s   € ô �eÓ¤§¡Ñ-Ð-r   )r$   Údns.enumÚdnsÚdns.exceptionÚenumÚIntEnumr   Ú	exceptionÚDNSExceptionr   Ústrr(   Úintr.   r2   r4   Úboolr6   r   r   r   r   r   r   r   r   Ú<module>rA      sÊ   ðñ$ ã Û ôˆS�X‰X×Ñô ô*$�C—M‘M×.Ñ.ô $ð
"�Cð 
"˜Fô 
"ð*�cð *˜fô *ð	"�Fð 	"˜sô 	"ð
!�6ð 
!˜cô 
!ð.�Sð .˜Tô .ð 	�‰€Ø	�‰€Ø	�‰€Ø	�‰€Ø	�‰�r   