관리-도구
편집 파일: rdataclass.cpython-38.pyc
U /?�f� � @ s� d Z ddlZddlZG dd� dejj�ZejejhZ G dd� dej j�Ze ed�dd �Zee d �dd�Zeed �dd�ZejZejZejZejZejZejZejZejZejZdS )zDNS Rdata Classes.� Nc @ sd e Zd ZdZdZdZeZdZeZdZ e Z dZdZe dd � �Ze d d� �Ze dd � �Ze dd� �ZdS )� RdataClasszDNS Rdata Classr � � � � � c C s dS )Ni�� � ��clsr r �</opt/hc_python/lib/python3.8/site-packages/dns/rdataclass.py�_maximum% s zRdataClass._maximumc C s dS )N�classr r r r r �_short_name) s zRdataClass._short_namec C s dS )NZCLASSr r r r r �_prefix- s zRdataClass._prefixc C s t S )N)�UnknownRdataclassr r r r �_unknown_exception_class1 s z#RdataClass._unknown_exception_classN)�__name__� __module__�__qualname__�__doc__� RESERVED0�IN�INTERNET�CH�CHAOS�HS�HESIOD�NONE�ANY�classmethodr r r r r r r r r s$ r c @ s e Zd ZdZdS )r zA DNS class is unknown.N)r r r r r r r r r 9 s r )�text�returnc C s t �| �S )a� Convert text into a DNS rdata class value. The input text can be a defined DNS RR class mnemonic or instance of the DNS generic class syntax. For example, "IN" and "CLASS1" will both result in a value of 1. Raises ``dns.rdatatype.UnknownRdataclass`` if the class is unknown. Raises ``ValueError`` if the rdata class value is not >= 0 and <= 65535. Returns a ``dns.rdataclass.RdataClass``. )r � from_text)r r r r r"