
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
U
    #IGZÆ  ã                   @   sØ   d dl mZmZmZ d dlZd dlZd dlZd dlZejd  dkZ	e 
¡ dkZe	rŒd dlmZ dd„ ZdZd	d
„ ZG dd„ deƒZdd„ Zndd„ ZdZdd
„ Zdd„ Zdd„ Ze	s¾dd„ Zndd„ Zdd„ Zeƒ ZdS )é    )Úabsolute_importÚdivisionÚprint_functionNé   ÚPyPy)ÚIterableUserDictc                 C   s   t | ttjfƒS ©N)Ú
isinstanceÚtypeÚtypesZ	ClassType©Úklass© r   ú=/opt/alt/python38/lib/python3.8/site-packages/attr/_compat.pyÚisclass   s    r   r
   c                 C   s   |   ¡ S r   )Ú	iteritems©Údr   r   r   r      s    r   c                   @   sT   e Zd ZdZdd„ Zdd„ Zdd„ Zdd	„ Zddd„Zdd„ Z	ddd„Z
dd„ Zd
S )ÚReadOnlyDictz5
        Best-effort read-only dict wrapper.
        c                 C   s   t dƒ‚d S )Nz6'mappingproxy' object does not support item assignment©Ú	TypeError)ÚselfÚkeyÚvalr   r   r   Ú__setitem__!   s    zReadOnlyDict.__setitem__c                 C   s   t dƒ‚d S )Nz/'mappingproxy' object has no attribute 'update'©ÚAttributeError©r   Ú_r   r   r   Úupdate&   s    zReadOnlyDict.updatec                 C   s   t dƒ‚d S )Nz4'mappingproxy' object does not support item deletionr   r   r   r   r   Ú__delitem__+   s    zReadOnlyDict.__delitem__c                 C   s   t dƒ‚d S )Nz.'mappingproxy' object has no attribute 'clear'r   ©r   r   r   r   Úclear0   s    zReadOnlyDict.clearNc                 C   s   t dƒ‚d S )Nz,'mappingproxy' object has no attribute 'pop'r   ©r   r   Údefaultr   r   r   Úpop5   s    zReadOnlyDict.popc                 C   s   t dƒ‚d S )Nz0'mappingproxy' object has no attribute 'popitem'r   r!   r   r   r   Úpopitem:   s    zReadOnlyDict.popitemc                 C   s   t dƒ‚d S )Nz3'mappingproxy' object has no attribute 'setdefault'r   r#   r   r   r   Ú
setdefault?   s    zReadOnlyDict.setdefaultc                 C   s   dt | jƒ d S )Nzmappingproxy(ú))ÚreprÚdatar!   r   r   r   Ú__repr__D   s    zReadOnlyDict.__repr__)N)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r    r"   r%   r&   r'   r+   r   r   r   r   r      s   

r   c                 C   s   t ƒ }|j | ¡ |S r   )r   r*   r   )r   Úresr   r   r   Úmetadata_proxyH   s    r1   c                 C   s
   t | tƒS r   )r	   r
   r   r   r   r   r   N   s    Úclassc                 C   s   |   ¡ S r   )Úitemsr   r   r   r   r   S   s    c                 C   s   t  t| ƒ¡S r   )r   ÚMappingProxyTypeÚdictr   r   r   r   r1   V   s    c                  C   s*   zddl } | W S  tk
r$   Y dS X dS )ú0
    Moved into a function for testability.
    r   N)ÚctypesÚImportError)r7   r   r   r   Úimport_ctypesZ   s
    r9   c                  O   s   t jdtdd� dS )ú�
        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.r   )Ú
stacklevelN)ÚwarningsÚwarnÚRuntimeWarning©ÚargsÚkwr   r   r   Ú	just_warnf   s
    ürB   c                  O   s   dS )r:   Nr   r?   r   r   r   rB   r   s    c                  C   sD   t rdd„ } n2tƒ }|dk	r<|jj} |j|jf| _|j| _nt} | S )r6   c                 S   s   |   |f¡ d S r   )Ú__setstate__)ÚcellÚvaluer   r   r   Úset_closure_cell~   s    z/make_set_closure_cell.<locals>.set_closure_cellN)	ÚPYPYr9   Ú	pythonapiZ
PyCell_SetÚ	py_objectÚargtypesÚc_intÚrestyperB   )rF   r7   r   r   r   Úmake_set_closure_celly   s    

rM   )Ú
__future__r   r   r   ÚplatformÚsysr   r<   Úversion_infoÚPY2Úpython_implementationrG   ÚUserDictr   r   ZTYPEr   r   r1   r9   rB   rM   rF   r   r   r   r   Ú<module>   s.   ,

