HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //proc/self/root/lib/python3.9/site-packages/dns/__pycache__/enum.cpython-39.pyc
a

�M�ek�@s>ddlZddlmZmZmZeddd�ZGdd�dej�ZdS)�N)�Type�TypeVar�Union�TIntEnum�IntEnum)�boundc@s�eZdZedd��Zedd��Zeeeeed�dd��Z	eeee
ed�d	d
��Zeeeee
efed�dd��Z
ed
d��Zedd��Zedd��Zedd��Zedd��Zedd��ZdS)rcCs>|�|�t�||�}|�|d�p0|���|��|_||_|S�N)�_check_value�int�__new__�_extra_to_text�_prefix�_name_�_value_)�cls�value�val�r�,/usr/lib/python3.9/site-packages/dns/enum.py�	_missing_s

zIntEnum._missing_cCsD|��}t|t�st�|dks&||kr@|��}t|�d|����dS)Nrz$ must be an int between >= 0 and <= )�_maximum�
isinstancer
�	TypeError�_short_name�
ValueError)rr�max�namerrrr	!s
zIntEnum._check_value)r�text�returncCs�|��}z
||WSty$Yn0|�|�}|r8|S|��}|�|�r�|t|�d���r�t|t|�d��}|�|�z
||�WSt	y�|YS0|�
��dSr)�upper�KeyError�_extra_from_textr
�
startswith�len�isdigitr
r	r�_unknown_exception_class)rrr�prefixrrr�	from_text*s"




zIntEnum.from_text)rrrcCsX|�|�z||�j}Wnty.d}Yn0|�||�}|durT|���|��}|Sr)r	rrrr
)rrrrrr�to_text>s

zIntEnum.to_textcCs&t|t�r|�|�S|�|�||�S)a�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.
        )r�strr'r	)rrrrr�makeJs


zIntEnum.makecCst�dSr)�NotImplementedError�rrrrr^szIntEnum._maximumcCs
|j��Sr)�__name__�lowerr,rrrrbszIntEnum._short_namecCsdS)N�rr,rrrr
fszIntEnum._prefixcCsdSrr)rrrrrr!jszIntEnum._extra_from_textcCs|Srr)rrZcurrent_textrrrrnszIntEnum._extra_to_textcCstSr)rr,rrrr%rsz IntEnum._unknown_exception_classN)r-�
__module__�__qualname__�classmethodrr	rrr)r'r
r(rr*rrr
r!rr%rrrrrs,

 




)�enum�typingrrrrrrrrr�<module>s