
    Eqg                     D   d Z ddlZddlZ G d dej        j                  Zej        ej        hZ	 G d dej
        j                  Zdedefd	Zd
edefdZdedefdZej        Zej        Zej        Zej        Zej        Zej        Zej        Zej        Zej        ZdS )zDNS Rdata Classes.    Nc                       e Zd ZdZdZdZeZdZeZdZ	e	Z
dZdZed             Zed	             Zed
             Zed             ZdS )
RdataClasszDNS Rdata Classr                  c                     dS )Ni   clss    @/var/www/html/env/lib/python3.11/site-packages/dns/rdataclass.py_maximumzRdataClass._maximum%   s    u    c                     dS )Nclassr   r   s    r   _short_namezRdataClass._short_name)       wr   c                     dS )NCLASSr   r   s    r   _prefixzRdataClass._prefix-   r   r   c                     t           S )N)UnknownRdataclassr   s    r   _unknown_exception_classz#RdataClass._unknown_exception_class1   s      r   N)__name__
__module____qualname____doc__	RESERVED0ININTERNETCHCHAOSHSHESIODNONEANYclassmethodr   r   r   r   r   r   r   r   r      s        I	
BH	
BE	
BFD
C  [   [   [ ! ! [! ! !r   r   c                       e Zd ZdZdS )r   zA DNS class is unknown.N)r   r   r   r   r   r   r   r   r   9   s        !!!!r   r   textreturnc                 6    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*   s    r   r-   r-   =   s     %%%r   valuec                 6    t                               |           S )a  Convert a DNS rdata class value to text.

    If the value has a known mnemonic, it will be used, otherwise the
    DNS generic class syntax will be used.

    Raises ``ValueError`` if the rdata class value is not >= 0 and <= 65535.

    Returns a ``str``.
    )r   to_text)r.   s    r   r0   r0   O   s     e$$$r   rdclassc                     | t           v rdS dS )zTrue if the specified class is a metaclass.

    The currently defined metaclasses are ANY and NONE.

    *rdclass* is a ``dns.rdataclass.RdataClass``.
    TF)_metaclasses)r1   s    r   is_metaclassr4   ]   s     ,t5r   )r   dns.enumdnsdns.exceptionenumIntEnumr   r&   r'   r3   	exceptionDNSExceptionr   strr-   r0   boolr4   r   r    r!   r"   r#   r$   r%   r   r   r   <module>r>      s?  $       ! ! ! ! !! ! ! !< 0" " " " "2 " " "&C &J & & & &$%: %# % % % %
* 
 
 
 
 
  	]]]		nr   