관리-도구
편집 파일: rcode.cpython-38.pyc
U /?�f< � @ s d Z ddlmZ ddlZddlZG dd� dejj�ZG dd� dej j �Zeed�d d �Z eeed�dd �Zeeeef d�dd�Zdeeed�dd�ZejZejZejZejZejZejZejZejZejZejZejZejZejZej Z ej!Z!ej"Z"ej#Z#ej$Z$ej%Z%ej&Z&ej'Z'dS )zDNS Result Codes.� )�TupleNc @ sx e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd Zd ZdZdZdZdZdZdZdZedd� �Zedd� �ZdS )�Rcoder � � � � � � � � � � � � � � � � � � � c C s dS )N� � ��clsr r �7/opt/hc_python/lib/python3.8/site-packages/dns/rcode.py�_maximumF s zRcode._maximumc C s t S )N)�UnknownRcoder r r r �_unknown_exception_classJ s zRcode._unknown_exception_classN)�__name__� __module__�__qualname__�NOERROR�FORMERR�SERVFAIL�NXDOMAIN�NOTIMP�REFUSED�YXDOMAIN�YXRRSET�NXRRSET�NOTAUTH�NOTZONE� DSOTYPENI�BADVERS�BADSIG�BADKEY�BADTIME�BADMODE�BADNAME�BADALG�BADTRUNC� BADCOOKIE�classmethodr r r r r r r s2 r c @ s e Zd ZdZdS )r zA DNS rcode is unknown.N)r r r! �__doc__r r r r r O s r )�text�returnc C s t �| �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)r9 r r r r; S s r; )�flags� ednsflagsr: c C s | d@ |d? d@ B }t �|�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)r<