
    ui                        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 rS rS	 r\R                   r\R"                  r\R$                  r\R&                  r\R(                  r\R*                  r\R,                  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    E/home/kodi/.kodi/addons/script.module.dnspython/lib/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_class/   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   7   zA DNS class is unknown.r   N)r    r!   r"   r#   r$   r/   r   r   r   r   r   7   s    !r   r   c                 ,    [         R                  U 5      $ )au  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 an ``int``.
)r   	from_text)texts    r   r3   r3   ;   s     %%r   c                 ,    [         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)values    r   r6   r6   M   s     e$$r   c                     U [         ;   a  gg)z{True if the specified class is a metaclass.

The currently defined metaclasses are ANY and NONE.

*rdclass* is an ``int``.
TF)_metaclasses)rdclasss    r   is_metaclassr;   [   s     ,r   )r$   dns.enumdnsdns.exceptionenumIntEnumr   r,   r-   r9   	exceptionDNSExceptionr   r3   r6   r;   r%   r&   r'   r(   r)   r*   r+   r   r   r   <module>rC      s   $   !!! !: 0"22 "&$%
   	]]]]]]			nnr   