shell bypass 403

Cubjrnet7 Shell


name : immutable.cpython-39.opt-1.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
'

© 2025 Cubjrnet7