HEX
Server: LiteSpeed
System: Linux atali.colombiahosting.com.co 5.14.0-570.12.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 13 06:11:55 EDT 2025 x86_64
User: coopserp (1713)
PHP: 8.2.29
Disabled: dl,exec,passthru,proc_open,proc_close,shell_exec,memory_limit,system,popen,curl_multi_exec,show_source,symlink,link,leak,listen,diskfreespace,tmpfile,ignore_user_abord,highlight_file,source,show_source,fpaththru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setid,posix_times,posix_ttyname,posix_uname,proc_get_status,proc_nice,proc_terminate
Upload Files
File: //proc/self/root/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
'