
    g                        S r SSKrSSKr " S S\R                  R
                  5      r\R                  \R                  1r	 " S S\R                  R                  5      rS\S\4S	 jrS
\S\4S jrS\S\4S jr\R$                  r\R&                  r\R(                  r\R*                  r\R,                  r\R.                  r\R0                  r\R                  r\R                  rg)zDNS Rdata Classes.    Nc                   |    \ rS rSrSrSrSr\rSr\r	Sr
\
rSrSr\S	 5       r\S
 5       r\S 5       r\S 5       rSrg)
RdataClass   zDNS Rdata Classr                  c                     g)Ni   clss    G/home/matz/Project1/venv/lib/python3.13/site-packages/dns/rdataclass.py_maximumRdataClass._maximum%   s        c                     g)Nclassr   r   s    r   _short_nameRdataClass._short_name)       r   c                     g)NCLASSr   r   s    r   _prefixRdataClass._prefix-   r   r   c                     [         $ )N)UnknownRdataclassr   s    r   _unknown_exception_class#RdataClass._unknown_exception_class1   s      r   r   N)__name__
__module____qualname____firstlineno____doc__	RESERVED0ININTERNETCHCHAOSHSHESIODNONEANYclassmethodr   r   r   r   __static_attributes__r   r   r   r   r      s    I	
BH	
BE	
BFD
C      ! !r   r   c                       \ rS rSrSrSrg)r   9   zA DNS class is unknown.r   N)r    r!   r"   r#   r$   r/   r   r   r   r   r   9   s    !r   r   textreturnc                 ,    [         R                  U 5      $ )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)r2   s    r   r5   r5   =   s     %%r   valuec                 ,    [         R                  U 5      $ )zConvert 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)r6   s    r   r8   r8   O   s     e$$r   rdclassc                     U [         ;   a  gg)zTrue if the specified class is a metaclass.

The currently defined metaclasses are ANY and NONE.

*rdclass* is a ``dns.rdataclass.RdataClass``.
TF)_metaclasses)r9   s    r   is_metaclassr<   ]   s     ,r   )r$   dns.enumdnsdns.exceptionenumIntEnumr   r,   r-   r;   	exceptionDNSExceptionr   strr5   r8   boolr<   r%   r&   r'   r(   r)   r*   r+   r   r   r   <module>rF      s   $   !!! !< 0"22 "&C &J &$%: %# %
* 
 
   	]]]]]]			nnr   