
    ui[                     6    S SK r  " S S\ R                  5      rg)    Nc                       \ rS rSr\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r	\S 5       r
\S 5       r\S	 5       rS
rg)IntEnum   c                 z    U R                  5       nUS:  d  X:  a   U R                  5       n[        U SU 35      eg )Nr   z must be between >= 0 and <= )_maximum_short_name
ValueError)clsvaluemaxnames       ?/home/kodi/.kodi/addons/script.module.dnspython/lib/dns/enum.py_check_valueIntEnum._check_value   s@    lln19??$Dv%B3%HII $    c                    UR                  5       n X   $ ! [         a     Of = fU R                  5       nUR                  U5      (       ad  U[	        U5      S  R                  5       (       aC  [        U[	        U5      S  5      nU R                  U5         U " U5      $ ! [         a    Us $ f = fU R                  5       eN)
upperKeyError_prefix
startswithlenisdigitintr   r	   _unknown_exception_class)r
   textprefixr   s       r   	from_textIntEnum.from_text   s    zz|	9 		??6""tCKL'9'A'A'C'CS[\*+EU#5z! **,,s    
##B B-,B-c                     U R                  U5         U " U5      R                  $ ! [         a    U R                  5        U 3s $ f = fr   )r   r   r	   r   r
   r   s     r   to_textIntEnum.to_text-   sG    	-u:??" 	-kkm_UG,,	-s   % AAc                     [        U[        5      (       a  U R                  U5      $ U R                  U5         U " U5      $ ! [         a    Us $ f = f)am  Convert text or a value into an enumerated type, if possible.

*value*, the ``int`` or ``str`` to convert.

Raises a class-specific exception if a ``str`` is provided that
cannot be converted.

Raises ``ValueError`` if the value is out of range.

Returns an enumeration from the calling class corresponding to the
value, if one is defined, or an ``int`` otherwise.
)
isinstancestrr   r   r	   r!   s     r   makeIntEnum.make5   sQ     eS!!==''	u: 	L	s   A AAc                     [         er   )NotImplementedErrorr
   s    r   r   IntEnum._maximumL   s    !!r   c                 6    U R                   R                  5       $ r   )__name__lowerr+   s    r   r   IntEnum._short_nameP   s    ||!!##r   c                     g)N  r+   s    r   r   IntEnum._prefixT   s    r   c                     [         $ r   )r	   r+   s    r   r    IntEnum._unknown_exception_classX   s    r   r3   N)r.   
__module____qualname____firstlineno__classmethodr   r   r"   r'   r   r   r   r   __static_attributes__r3   r   r   r   r      s    J J - -  - -  , " " $ $    r   r   )enumr   r3   r   r   <module>r=      s   $ Fdll Fr   