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/usr/lib/python3.9/site-packages/dns/__pycache__/immutable.cpython-39.pyc
a

�M�e��@sPddlZddlmZmZddlmZeGdd�dejj��Z	eed�dd�Z
dS)	�N)�Any�Callable)�	immutablec@sPeZdZdefeeegejj	fd�dd�Z
dd�Zdd�Zd	d
�Z
dd�Zd
S)�DictF)�
dictionary�no_copy�map_factorycCs8|rt|tjj�r||_n|�|_|j�|�d|_dS)aMake an immutable dictionary from the specified dictionary.

        If *no_copy* is `True`, then *dictionary* will be wrapped instead
        of copied.  Only set this if you are sure there will be no external
        references to the dictionary.
        N)�
isinstance�collections�abc�MutableMapping�_odict�update�_hash)�selfrrr�r�1/usr/lib/python3.9/site-packages/dns/immutable.py�__init__s
z
Dict.__init__cCs|j�|�S�N)r
�__getitem__)r�keyrrrrszDict.__getitem__cCsB|jdur<d}t|j���D]}|t|�N}qt�|d|�|jS)Nrr)r�sortedr
�keys�hash�object�__setattr__)r�hrrrr�__hash__!s
z
Dict.__hash__cCs
t|j�Sr)�lenr
�rrrr�__len__*szDict.__len__cCs
t|j�Sr)�iterr
rrrr�__iter__-sz
Dict.__iter__N)�__name__�
__module__�__qualname__�dictr�boolrr
rrrrrr r"rrrrr	s��	r)�o�returncCs�t|t�rt|�St|t�rPzt|�|WStyNtdd�|D��YS0t|t�rltdd�|D��St|t�r�t�}|��D]\}}t	|�||<q�t
|d�S|S)z3
    Convert mutable types to immutable types.
    css|]}t|�VqdSr��constify��.0�eltrrr�	<genexpr><�zconstify.<locals>.<genexpr>css|]}t|�VqdSrr*r,rrrr/>r0T)r	�	bytearray�bytes�tupler�	Exception�listr&�itemsr+r)r(Zcdict�k�vrrrr+1s 




r+)�collections.abcr
�typingrrZdns._immutable_ctxrr�Mappingrr+rrrr�<module>s
'