MOON
Server: Apache
System: Linux server30c.hostingraja.org 3.10.0-962.3.2.lve1.5.63.el7.x86_64 #1 SMP Fri Oct 8 12:03:35 UTC 2021 x86_64
User: jibhires (1887)
PHP: 8.1.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, escapeshellcmd, pcntl_exec
Upload Files
File: //opt/alt/python35/lib/python3.5/site-packages/attr/__pycache__/_compat.cpython-35.opt-1.pyc


#IGZ��@s:ddlmZmZmZddlZddlZddlZddlZejddkZ	ej
�dkZe	r�ddlm
Z
dd�ZdZd	d
�ZGdd�de
�Zd
d�Zn*dd�ZdZdd
�Zdd�Zdd�Ze	sdd�Zndd�Zdd�Ze�ZdS)�)�absolute_import�division�print_functionN�ZPyPy)�IterableUserDictcCst|ttjf�S)N)�
isinstance�type�typesZ	ClassType)�klass�r�/_compat.py�isclasssr
rcCs
|j�S)N)�	iteritems)�drrrrsrc@s|eZdZdZdd�Zdd�Zdd�Zdd	�Zd
dd�Zd
d�Z	d
dd�Z
dd�Zd
S)�ReadOnlyDictz5
        Best-effort read-only dict wrapper.
        cCstd��dS)Nz6'mappingproxy' object does not support item assignment)�	TypeError)�self�key�valrrr�__setitem__!szReadOnlyDict.__setitem__cCstd��dS)Nz/'mappingproxy' object has no attribute 'update')�AttributeError)r�_rrr�update&szReadOnlyDict.updatecCstd��dS)Nz4'mappingproxy' object does not support item deletion)r)rrrrr�__delitem__+szReadOnlyDict.__delitem__cCstd��dS)Nz.'mappingproxy' object has no attribute 'clear')r)rrrr�clear0szReadOnlyDict.clearNcCstd��dS)Nz,'mappingproxy' object has no attribute 'pop')r)rr�defaultrrr�pop5szReadOnlyDict.popcCstd��dS)Nz0'mappingproxy' object has no attribute 'popitem')r)rrrr�popitem:szReadOnlyDict.popitemcCstd��dS)Nz3'mappingproxy' object has no attribute 'setdefault')r)rrrrrr�
setdefault?szReadOnlyDict.setdefaultcCsdt|j�dS)Nz
mappingproxy(�))�repr�data)rrrr�__repr__DszReadOnlyDict.__repr__)�__name__�
__module__�__qualname__�__doc__rrrrrrrr"rrrrrsrcCst�}|jj|�|S)N)rr!r)r�resrrr�metadata_proxyHs	r(cCs
t|t�S)N)rr)r
rrrr
Ns�classcCs
|j�S)N)�items)rrrrrSscCstjt|��S)N)r	�MappingProxyType�dict)rrrrr(VscCs1yddl}|SWntk
r,dSYnXdS)z0
    Moved into a function for testability.
    rN)�ctypes�ImportError)r-rrr�
import_ctypesZs

r/cOstjdtdd�dS)z�
        We only warn on Python 3 because we are not aware of any concrete
        consequences of not setting the cell on Python 2.
        ziMissing ctypes.  Some features like bare super() or accessing __class__ will not work with slots classes.�
stacklevelrN)�warnings�warn�RuntimeWarning)�args�kwrrr�	just_warnfsr6cOsdS)z�
        We only warn on Python 3 because we are not aware of any concrete
        consequences of not setting the cell on Python 2.
        Nr)r4r5rrrr6rscCsdtrdd�}nKt�}|dk	rZ|jj}|j|jf|_|j|_nt}|S)z0
    Moved into a function for testability.
    cSs|j|f�dS)N)�__setstate__)Zcell�valuerrr�set_closure_cell~sz/make_set_closure_cell.<locals>.set_closure_cellN)	�PYPYr/Z	pythonapiZ
PyCell_SetZ	py_objectZargtypesZc_intZrestyper6)r9r-rrr�make_set_closure_cellys	r;)Z
__future__rrr�platform�sysr	r1�version_infoZPY2Zpython_implementationr:�UserDictrr
ZTYPErrr(r/r6r;r9rrrr�<module>s.,