shell bypass 403

Cubjrnet7 Shell


name : _compat.cpython-39.pyc
a

Pͣ_��@sddlmZmZmZddlZddlZddlZddlZejddkZ	e�
�dkZesdejdd�dkrjeZ
nddlmZeZ
e	r�ddlmZmZddlmZd	d
�ZdZdd
�ZGdd�de�Zdd�Zdd�Zn4ddlmZmZdd�Zdd
�ZdZdd
�Zdd�Zdd�Ze�ZdS)�)�absolute_import�division�print_functionN�ZPyPy)��)�OrderedDict)�Mapping�Sequence)�IterableUserDictcCst|ttjf�S�N)�
isinstance�type�typesZ	ClassType��klass�r�0/usr/lib/python3.9/site-packages/attr/_compat.py�isclasssrrcCs|��Sr)�	iteritems��drrrr"src@sTeZdZdZdd�Zdd�Zdd�Zdd	�Zddd�Zd
d�Z	ddd�Z
dd�Zd
S)�ReadOnlyDictz5
        Best-effort read-only dict wrapper.
        cCstd��dS)Nz6'mappingproxy' object does not support item assignment��	TypeError)�self�key�valrrr�__setitem__+s�zReadOnlyDict.__setitem__cCstd��dS)Nz/'mappingproxy' object has no attribute 'update'��AttributeError�r�_rrr�update1s�zReadOnlyDict.updatecCstd��dS)Nz4'mappingproxy' object does not support item deletionrr!rrr�__delitem__7s�zReadOnlyDict.__delitem__cCstd��dS)Nz.'mappingproxy' object has no attribute 'clear'r�rrrr�clear=s�zReadOnlyDict.clearNcCstd��dS)Nz,'mappingproxy' object has no attribute 'pop'r�rr�defaultrrr�popCs�zReadOnlyDict.popcCstd��dS)Nz0'mappingproxy' object has no attribute 'popitem'rr%rrr�popitemIs�zReadOnlyDict.popitemcCstd��dS)Nz3'mappingproxy' object has no attribute 'setdefault'rr'rrr�
setdefaultOs�zReadOnlyDict.setdefaultcCsdt|j�dS)Nz
mappingproxy(�))�repr�datar%rrr�__repr__UszReadOnlyDict.__repr__)N)N)�__name__�
__module__�__qualname__�__doc__rr#r$r&r)r*r+r/rrrrr&s

rcCst�}|j�|�|Sr)rr.r#)r�resrrr�metadata_proxyYsr5cOsdS)��
        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_warn^sr:cOstjdtdd�dS)r6z�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�RuntimeWarningr7rrrr:hs
�cCs
t|t�Sr)r
rrrrrrus�classcCs|��Sr)�itemsrrrrrzscCst�t|��Sr)r�MappingProxyType�dictrrrrr5}scs2trdd�}|Sdd�}z�tr&|j}n|j}|jdks@|jdkrDt�tjdkrb|j	|j|jd��n`|j
g}tsz|�|j�|�
|j|j|j|j|j|j|j|j|j|j|j|j|jg
�tj|���fd	d�}d
d�}tr�|�jd}n|�jd}||d
�|jd
k�rt�Wnt�y(tYS0|SdS)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�sz/make_set_closure_cell.<locals>.set_closure_cellcs|�dS)Ncs�Srrr��xrr�force_x_to_be_a_cell�szQmake_set_closure_cell.<locals>.set_first_cellvar_to.<locals>.force_x_to_be_a_cellr)rErIrrGr�set_first_cellvar_to�sz3make_set_closure_cell.<locals>.set_first_cellvar_torGr)r�)�co_cellvars�co_freevarscs t��idd|f�}||�dS)N�setterr)r�FunctionType)rDrErN�Zset_first_freevar_coderrrF�s�csd��fdd�}|S)Ncs�SrrrrGrr�func�sz@make_set_closure_cell.<locals>.make_func_with_cell.<locals>.funcr)rQrrGr�make_func_with_cell�sz2make_set_closure_cell.<locals>.make_func_with_cellr�dN) �PYPY�PY2Z	func_code�__code__rLrM�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�CodeTypeZfunc_closure�__closure__�
cell_contents�	Exceptionr:)rFrJ�cor8rRrDrrPr�make_set_closure_cell�sZ

���


ro)Z
__future__rrr�platformrXrr<rYrUZpython_implementationrTrBZordered_dict�collectionsrr	r
�UserDictrrZTYPErrr5r:�collections.abcrorFrrrr�<module>s63

f

© 2025 Cubjrnet7