%PDF- %PDF-
Mini Shell

Mini Shell

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

�

5��e<����dZddlmZddlZddlZGd�dejj�ZGd�dejj�Zded	efd
�Z
deded	efd
�Zded	eeeffd�Zddeded	efd�Zej&Zej(Zej*Zej,Zej.Zej0Zej2Zej4Zej6Zej8Zej:Zej<Zej>Zej@Z ejBZ!ejDZ"ejFZ#ejHZ$ejJZ%ejLZ&ejNZ'y)zDNS Result Codes.�)�TupleNc��eZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
Zd
ZdZdZdZdZdZdZdZed��Zed��Zy)�Rcoder���������	�
���������c��y)N����clss �+/usr/lib/python3/dist-packages/dns/rcode.py�_maximumzRcode._maximumFs���c��tS)N)�UnknownRcoders r�_unknown_exception_classzRcode._unknown_exception_classJs���r N)�__name__�
__module__�__qualname__�NOERROR�FORMERR�SERVFAIL�NXDOMAIN�NOTIMP�REFUSED�YXDOMAIN�YXRRSET�NXRRSET�NOTAUTH�NOTZONE�	DSOTYPENI�BADVERS�BADSIG�BADKEY�BADTIME�BADMODE�BADNAME�BADALG�BADTRUNC�	BADCOOKIE�classmethodrr#rr rrrs����G��G��H��H�
�F��G��H��G��G��G��G��I��G�
�F�
�F��G��G��G�
�F��H��I��������r rc��eZdZdZy)r"zA DNS rcode is unknown.N)r$r%r&�__doc__rr rr"r"Os��!r r"�text�returnc�,�tj|�S)z�Convert text into an rcode.

    *text*, a ``str``, the textual rcode or an integer in textual form.

    Raises ``dns.rcode.UnknownRcode`` if the rcode mnemonic is unknown.

    Returns a ``dns.rcode.Rcode``.
    )r�	from_text)r?s rrBrBSs���?�?�4� � r �flags�	ednsflagsc�H�|dz|dz	dzz}tj|�S)z�Return the rcode value encoded by flags and ednsflags.

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

    *ednsflags*, an ``int``, the EDNS flags field.

    Raises ``ValueError`` if rcode is < 0 or > 4095

    Returns a ``dns.rcode.Rcode``.
    �r��)r�make)rCrD�values   r�
from_flagsrJ`s*���V�^��b��E� 9�:�E��:�:�e��r rIc�N�|dks|dkDrtd��|dz}|dzdz}||fS)z�Return a (flags, ednsflags) tuple which encodes the rcode.

    *value*, a ``dns.rcode.Rcode``, the rcode.

    Raises ``ValueError`` if rcode is < 0 or > 4095.

    Returns an ``(int, int)`` tuple.
    rrzrcode must be >= 0 and <= 4095rFrGr)�
ValueError)rI�v�evs   r�to_flagsrOps=��
�q�y�E�D�L��9�:�:�
���A�
�%�-�B�	�B�
�r�7�Nr �tsigc�X�|r|tjk(rytj|�S)z�Convert rcode into text.

    *value*, a ``dns.rcode.Rcode``, the rcode.

    Raises ``ValueError`` if rcode is < 0 or > 4095.

    Returns a ``str``.
    r4)rr3�to_text)rIrPs  rrRrR�s$�������&���=�=���r )F)(r>�typingr�dns.enum�dns�
dns.exception�enum�IntEnumr�	exception�DNSExceptionr"�strrB�intrJrO�boolrRr'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;rr r�<module>r^sa��$����2�C�H�H���2�j"�3�=�=�-�-�"�
!�C�
!�E�
!�
�c�
�c�
�e�
� �E��e�C��H�o��" �5� �� �� �"�-�-��
�-�-���>�>���>�>��	����
�-�-���>�>��
�-�-��
�-�-��
�-�-��
�-�-���O�O�	�
�-�-��	����	����
�-�-��
�-�-��
�-�-��	�����>�>���O�O�	r 

Zerion Mini Shell 1.0