CasperSecurity

Current Path : /lib/python3/dist-packages/attr/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/attr/__pycache__/_compat.cpython-310.pyc

o

��`��@s$ddlmZmZmZddlZddlZddlZddlZejddkZ	e�
�dkZes2ejdd�dkr5eZ
nddlmZeZ
e	rlddlmZmZddlmZd	d
�Zdd�Zd
Zdd�ZGdd�de�Zdd�Zdd�ZnddlmZmZdd�Zdd
�ZdZdd�ZejZdd�Zdd�Ze�ZdS)�)�absolute_import�division�print_functionN��PyPy)��)�OrderedDict)�Mapping�Sequence)�IterableUserDictcCst|ttjf�S�N)�
isinstance�type�types�	ClassType��klass�r�./usr/lib/python3/dist-packages/attr/_compat.py�isclass�rcCsi}||�t|||�S)zP
        A minimal stub of types.new_class that we need for make_class.
        )r)�name�bases�kwds�	exec_body�nsrrr�	new_classsrrcC�|��Sr
)�	iteritems��drrrr+�rc@sTeZdZdZdd�Zdd�Zdd�Zdd	�Zddd�Zd
d�Z	ddd�Z
dd�Zd
S)�ReadOnlyDictz5
        Best-effort read-only dict wrapper.
        cC�td��)Nz6'mappingproxy' object does not support item assignment��	TypeError)�self�key�valrrr�__setitem__4��zReadOnlyDict.__setitem__cCr$)Nz/'mappingproxy' object has no attribute 'update'��AttributeError�r'�_rrr�update:r+zReadOnlyDict.updatecCr$)Nz4'mappingproxy' object does not support item deletionr%r.rrr�__delitem__@r+zReadOnlyDict.__delitem__cCr$)Nz.'mappingproxy' object has no attribute 'clear'r,�r'rrr�clearFr+zReadOnlyDict.clearNcCr$)Nz,'mappingproxy' object has no attribute 'pop'r,�r'r(�defaultrrr�popLr+zReadOnlyDict.popcCr$)Nz0'mappingproxy' object has no attribute 'popitem'r,r2rrr�popitemRr+zReadOnlyDict.popitemcCr$)Nz3'mappingproxy' object has no attribute 'setdefault'r,r4rrr�
setdefaultXr+zReadOnlyDict.setdefaultcCsdt|j�dS)Nz
mappingproxy(�))�repr�datar2rrr�__repr__^szReadOnlyDict.__repr__r
)�__name__�
__module__�__qualname__�__doc__r*r0r1r3r6r7r8r<rrrrr#/s

r#cCst�}|j�|�|Sr
)r#r;r0)r!�resrrr�metadata_proxybsrBcOsdS)��
        We only warn on Python 3 because we are not aware of any concrete
        consequences of not setting the cell on Python 2.
        Nr��args�kwrrr�	just_warngsrGcOstjdtdd�dS)rCz�Running interpreter doesn't sufficiently support code object introspection.  Some features like bare super() or accessing __class__ will not work with slotted classes.r)�
stacklevelN)�warnings�warn�RuntimeWarningrDrrrrGqs

�cCs
t|t�Sr
)rrrrrrr~s
�classcCrr
)�itemsr rrrr�r"cCst�t|��Sr
)r�MappingProxyType�dictr rrrrB�scs(trdd�}|Sdd�}z|tr|j}n|j}|jdks |jdkr"t�tjdkr1|j	|j|jd��n0|j
g}ts=|�|j�|�
|j|j|j|j|j|j|j|j|j|j|j|j|jg
�tj|���fd	d�}d
d�}trt|�jd}n|�jd}||d
�|jd
kr�t�W|Sty�tYSw)z|Return a function of two arguments (cell, value) which sets
    the value stored in the closure cell `cell` to `value`.
    cSs|�|f�dSr
)�__setstate__)�cell�valuerrr�set_closure_cell�rz/make_set_closure_cell.<locals>.set_closure_cellcs|�dSr
r)rR�force_x_to_be_a_cellr��xr�set_first_cellvar_to�sz3make_set_closure_cell.<locals>.set_first_cellvar_torUr)r�)�co_cellvars�co_freevarscs t��idd|f�}||�dS)N�setterr)r�FunctionType)rQrRr[��set_first_freevar_coderrrS�s�csd��fdd�}|S)Ncs�Sr
rrrUrr�func�sz@make_set_closure_cell.<locals>.make_func_with_cell.<locals>.funcr)r_rrUr�make_func_with_cell�sz2make_set_closure_cell.<locals>.make_func_with_cellr�d) �PYPY�PY2�	func_code�__code__rYrZ�AssertionError�sys�version_info�replace�co_argcount�append�co_kwonlyargcount�extend�
co_nlocals�co_stacksize�co_flags�co_code�	co_consts�co_names�co_varnames�co_filename�co_name�co_firstlineno�	co_lnotabr�CodeType�func_closure�__closure__�
cell_contents�	ExceptionrG)rSrW�corEr`rQrr]r�make_set_closure_cell�s^

���


���r)�
__future__rrr�platformrgrrIrhrc�python_implementationrbrO�ordered_dict�collectionsr	r
r�UserDictrrr�TYPErr#rBrG�collections.abcrrSrrrr�<module>s<
3


f
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY