관리-도구
편집 파일: rcode.cpython-36.opt-1.pyc
3 �b�W � @ s� d Z ddlZddlmZ dZdZdZdZdZ dZ d Zd ZdZ dZd ZdZeeeee e eee eeed�Zedd� ej� D ��ZG dd� dejj�Zdd� Zdd� Zdd� Zdd� ZdS )zDNS Result Codes.� N� )�long� � � � � � � � � � )�NOERROR�FORMERR�SERVFAIL�NXDOMAIN�NOTIMP�REFUSED�YXDOMAIN�YXRRSET�NXRRSET�NOTAUTH�NOTZONE�BADVERSc c s | ]\}}||fV qd S )N� )�.0�x�yr r �/usr/lib/python3.6/rcode.py� <genexpr>6 s r c @ s e Zd ZdZdS )�UnknownRcodezA DNS rcode is unknown.N)�__name__� __module__�__qualname__�__doc__r r r r r 9 s r c C sB | j � r$t| �}|dkr$|dkr$|S tj| j� �}|dkr>t�|S )z�Convert text into an rcode. @param text: the textual rcode @type text: string @raises UnknownRcode: the rcode is unknown @rtype: int r i� N)�isdigit�int�_by_text�get�upperr )�text�vr r r � from_text>