Your IP : 18.119.119.191


Current Path : /opt/alt/python35/lib64/python3.5/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/__pycache__/_collections_abc.cpython-35.opt-2.pyc



���]�`�@s�ddlmZmZddlZddddddd	d
ddd
dddddddddddgZdZeed��Zeee	���Z
eeij���Zeeij
���Zeeij���Zeeg��Zeeeg���Zeeed���Zeeed9���Zeee���Zeed��Zeef��Zeee���Zeij��Zeij
��Zeij��Zeej �Z!edd���Z"d d!�Z#e#�Z#ee#�Z$e#j%�[#Gd"d�dd#e�Z&Gd$d�dd#e�Z'Gd%d�de'�Z(e(j)e$�Gd&d�dd#e�Z*Gd'd�de*�Z+Gd(d�dd#e�Z,Gd)d	�d	e,�Z-e-j)e�e-j)e
�e-j)e�e-j)e�e-j)e�e-j)e�e-j)e�e-j)e�e-j)e�e-j)e�e-j)e�e-j)e�e-j)e�Gd*d
�d
e-�Z.e.j)e"�Gd+d�dd#e�Z/Gd,d�dd#e�Z0Gd-d
�d
d#e�Z1Gd.d�de/e,e0�Z2e2j)e3�Gd/d�de2�Z4e4j)e�Gd0d�de/e,e0�Z5e5j)e!�Gd1d�de/�Z6Gd2d�de6e2�Z7e7j)e�Gd3d�de6e2�Z8e8j)e�Gd4d�de6�Z9e9j)e�Gd5d�de5�Z:e:j)e;�Gd6d�de/e,e0�Z<e<j)e=�e<j)e>�e<j)e�e<j)e?�Gd7d�de<�Z@e@j)eA�e@j)e	�Gd8d�de<�ZBeBj)eC�eBj)e	�dS):�)�ABCMeta�abstractmethodN�	Awaitable�	Coroutine�
AsyncIterable�
AsyncIterator�Hashable�Iterable�Iterator�	Generator�Sized�	Container�Callable�Set�
MutableSet�Mapping�MutableMapping�MappingView�KeysView�	ItemsView�
ValuesView�Sequence�MutableSequence�
ByteStringzcollections.abc��i��ccsdVS)N�rrr�5/opt/alt/python35/lib64/python3.5/_collections_abc.py�<lambda>7src�sdS)Nrrrrr�_coro9sr c@s:eZdZfZedd��Zedd��ZdS)rcCsdS)Nrr)�selfrrr�__hash__FszHashable.__hash__cCsE|tkrAx2|jD]'}d|jkr|jdr<dSPqWtS)Nr"T)r�__mro__�__dict__�NotImplemented)�cls�C�Brrr�__subclasshook__Js
zHashable.__subclasshook__N)�__name__�
__module__�__qualname__�	__slots__rr"�classmethodr)rrrrrBs�	metaclassc@s:eZdZfZedd��Zedd��ZdS)rccs	dVdS)Nr)r!rrr�	__await__YszAwaitable.__await__cCsE|tkrAx2|jD]'}d|jkr|jdr<dSPqWtS)Nr0T)rr#r$r%)r&r'r(rrrr)]s
zAwaitable.__subclasshook__N)r*r+r,r-rr0r.r)rrrrrUsc@s^eZdZfZedd��Zedddd��Zdd�Zedd	��Z	dS)
rcCs
t�dS)N)�
StopIteration)r!�valuerrr�sendlszCoroutine.sendNcCsL|dkr'|dkr|�|�}|dk	rB|j|�}|�dS)N)�with_traceback)r!�typ�val�tbrrr�throwss	zCoroutine.throwcCs<y|jt�Wnttfk
r+Yn
Xtd��dS)Nzcoroutine ignored GeneratorExit)r8�
GeneratorExitr1�RuntimeError)r!rrr�close�s
zCoroutine.closecCsS|tkrO|j}x3dD]+}x"|D]}||jkr)Pq)WtSqWdStS)Nr0r3r8r;T)r0r3r8r;)rr#r$r%)r&r'�mro�method�baserrrr)�s	

zCoroutine.__subclasshook__)
r*r+r,r-rr3r8r;r.r)rrrrrhs
c@s:eZdZfZedd��Zedd��ZdS)rcCst�S)N)r)r!rrr�	__aiter__�szAsyncIterable.__aiter__cCs0|tkr,tdd�|jD��r,dStS)Ncss|]}d|jkVqdS)r?N)r$)�.0r(rrr�	<genexpr>�sz1AsyncIterable.__subclasshook__.<locals>.<genexpr>T)r�anyr#r%)r&r'rrrr)�szAsyncIterable.__subclasshook__N)r*r+r,r-rr?r.r)rrrrr�sc@sFeZdZfZedd��Zdd�Zedd��ZdS)rc�s
t�dS)N)�StopAsyncIteration)r!rrr�	__anext__�szAsyncIterator.__anext__cCs|S)Nr)r!rrrr?�szAsyncIterator.__aiter__cCsL|tkrHtdd�|jD��rHtdd�|jD��rHdStS)Ncss|]}d|jkVqdS)rDN)r$)r@r(rrrrA�sz1AsyncIterator.__subclasshook__.<locals>.<genexpr>css|]}d|jkVqdS)r?N)r$)r@r(rrrrA�sT)rrBr#r%)r&r'rrrr)�s
zAsyncIterator.__subclasshook__N)	r*r+r,r-rrDr?r.r)rrrrr�sc@s:eZdZfZedd��Zedd��ZdS)r	ccsdS)Nr)r!rrr�__iter__�szIterable.__iter__cCs0|tkr,tdd�|jD��r,dStS)Ncss|]}d|jkVqdS)rEN)r$)r@r(rrrrA�sz,Iterable.__subclasshook__.<locals>.<genexpr>T)r	rBr#r%)r&r'rrrr)�szIterable.__subclasshook__N)r*r+r,r-rrEr.r)rrrrr	�sc@sFeZdZfZedd��Zdd�Zedd��ZdS)r
cCs
t�dS)N)r1)r!rrr�__next__�szIterator.__next__cCs|S)Nr)r!rrrrE�szIterator.__iter__cCsL|tkrHtdd�|jD��rHtdd�|jD��rHdStS)Ncss|]}d|jkVqdS)rFN)r$)r@r(rrrrA�sz,Iterator.__subclasshook__.<locals>.<genexpr>css|]}d|jkVqdS)rEN)r$)r@r(rrrrA�sT)r
rBr#r%)r&r'rrrr)�s
zIterator.__subclasshook__N)	r*r+r,r-rrFrEr.r)rrrrr
�sc@sjeZdZfZdd�Zedd��Zedddd��Zdd	�Ze	d
d��Z
dS)rcCs
|jd�S)N)r3)r!rrrrF�szGenerator.__next__cCs
t�dS)N)r1)r!r2rrrr3�szGenerator.sendNcCsL|dkr'|dkr|�|�}|dk	rB|j|�}|�dS)N)r4)r!r5r6r7rrrr8s	zGenerator.throwcCs<y|jt�Wnttfk
r+Yn
Xtd��dS)Nzgenerator ignored GeneratorExit)r8r9r1r:)r!rrrr;s
zGenerator.closecCsS|tkrO|j}x3dD]+}x"|D]}||jkr)Pq)WtSqWdStS)NrErFr3r8r;T)rErFr3r8r;)rr#r$r%)r&r'r<r=r>rrrr)s	

zGenerator.__subclasshook__)r*r+r,r-rFrr3r8r;r.r)rrrrr�s
c@s:eZdZfZedd��Zedd��ZdS)rcCsdS)Nrr)r!rrr�__len__2sz
Sized.__len__cCs0|tkr,tdd�|jD��r,dStS)Ncss|]}d|jkVqdS)rGN)r$)r@r(rrrrA9sz)Sized.__subclasshook__.<locals>.<genexpr>T)rrBr#r%)r&r'rrrr)6szSized.__subclasshook__N)r*r+r,r-rrGr.r)rrrrr.sc@s:eZdZfZedd��Zedd��ZdS)r
cCsdS)NFr)r!�xrrr�__contains__BszContainer.__contains__cCs0|tkr,tdd�|jD��r,dStS)Ncss|]}d|jkVqdS)rIN)r$)r@r(rrrrAIsz-Container.__subclasshook__.<locals>.<genexpr>T)r
rBr#r%)r&r'rrrr)FszContainer.__subclasshook__N)r*r+r,r-rrIr.r)rrrrr
>sc@s:eZdZfZedd��Zedd��ZdS)rcOsdS)NFr)r!�args�kwdsrrr�__call__RszCallable.__call__cCs0|tkr,tdd�|jD��r,dStS)Ncss|]}d|jkVqdS)rLN)r$)r@r(rrrrAYsz,Callable.__subclasshook__.<locals>.<genexpr>T)rrBr#r%)r&r'rrrr)VszCallable.__subclasshook__N)r*r+r,r-rrLr.r)rrrrrNsc@s�eZdZfZdd�Zdd�Zdd�Zdd�Zd	d
�Ze	dd��Z
d
d�ZeZdd�Z
dd�ZeZdd�Zdd�Zdd�ZeZdd�ZdS)rcCsTt|t�stSt|�t|�kr/dSx|D]}||kr6dSq6WdS)NFT)�
isinstancerr%�len)r!�other�elemrrr�__le__os
z
Set.__le__cCs8t|t�stSt|�t|�ko7|j|�S)N)rMrr%rNrQ)r!rOrrr�__lt__ysz
Set.__lt__cCs8t|t�stSt|�t|�ko7|j|�S)N)rMrr%rN�__ge__)r!rOrrr�__gt__~sz
Set.__gt__cCsTt|t�stSt|�t|�kr/dSx|D]}||kr6dSq6WdS)NFT)rMrr%rN)r!rOrPrrrrS�s
z
Set.__ge__cCs8t|t�stSt|�t|�ko7|j|�S)N)rMrr%rNrQ)r!rOrrr�__eq__�sz
Set.__eq__cCs
||�S)Nr)r&�itrrr�_from_iterable�szSet._from_iterablecs3t|t�stS�j�fdd�|D��S)Nc3s!|]}|�kr|VqdS)Nr)r@r2)r!rrrA�szSet.__and__.<locals>.<genexpr>)rMr	r%rW)r!rOr)r!r�__and__�szSet.__and__cCs%x|D]}||krdSqWdS)NFTr)r!rOr2rrr�
isdisjoint�s
zSet.isdisjointcCs9t|t�stSdd�||fD�}|j|�S)Ncss"|]}|D]}|Vq
qdS)Nr)r@�s�errrrA�szSet.__or__.<locals>.<genexpr>)rMr	r%rW)r!rO�chainrrr�__or__�sz
Set.__or__csQt�t�s1t�t�s"tS|j���|j�fdd�|D��S)Nc3s!|]}|�kr|VqdS)Nr)r@r2)rOrrrA�szSet.__sub__.<locals>.<genexpr>)rMrr	r%rW)r!rOr)rOr�__sub__�s
zSet.__sub__csQt|t�s1t|t�s"tS�j|�}�j�fdd�|D��S)Nc3s!|]}|�kr|VqdS)Nr)r@r2)r!rrrA�szSet.__rsub__.<locals>.<genexpr>)rMrr	r%rW)r!rOr)r!r�__rsub__�s
zSet.__rsub__cCsAt|t�s1t|t�s"tS|j|�}||||BS)N)rMrr	r%rW)r!rOrrr�__xor__�s
zSet.__xor__cCs�tj}d|d}t|�}d|d}||M}x>|D]6}t|�}|||d>AdAdN}||M}qBW|dd}||M}||kr�||d8}|d
kr�d	}|S)N�riM��r�i�M[l�4~2i�
i��6i��8#���)�sys�maxsizerN�hash)r!�MAX�MASK�n�hrH�hxrrr�_hash�s 	


z	Set._hashN)r*r+r,r-rQrRrTrSrUr.rWrX�__rand__rYr]�__ror__r^r_r`�__rxor__rlrrrrras"

	c@s�eZdZfZedd��Zedd��Zdd�Zdd�Zd	d
�Z	dd�Z
d
d�Zdd�Zdd�Z
dS)rcCs
t�dS)N)�NotImplementedError)r!r2rrr�add�szMutableSet.addcCs
t�dS)N)rp)r!r2rrr�discardszMutableSet.discardcCs)||krt|��|j|�dS)N)�KeyErrorrr)r!r2rrr�removeszMutableSet.removecCsHt|�}yt|�}Wntk
r6t�YnX|j|�|S)N)�iter�nextr1rsrr)r!rVr2rrr�pops

zMutableSet.popcCs.yx|j�qWWntk
r)YnXdS)N)rwrs)r!rrr�clears

zMutableSet.clearcCs"x|D]}|j|�qW|S)N)rq)r!rVr2rrr�__ior__s
zMutableSet.__ior__cCs&x||D]}|j|�qW|S)N)rr)r!rVr2rrr�__iand__"szMutableSet.__iand__cCsu||kr|j�nXt|t�s7|j|�}x7|D]/}||kr`|j|�q>|j|�q>W|S)N)rxrMrrWrrrq)r!rVr2rrr�__ixor__'s

zMutableSet.__ixor__cCs;||kr|j�nx|D]}|j|�q W|S)N)rxrr)r!rVr2rrr�__isub__4s


zMutableSet.__isub__N)r*r+r,r-rrqrrrtrwrxryrzr{r|rrrrr�s

c@sseZdZfZedd��Zddd�Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�ZdS)rcCs
t�dS)N)rs)r!�keyrrr�__getitem__NszMapping.__getitem__NcCs)y||SWntk
r$|SYnXdS)N)rs)r!r}�defaultrrr�getRs
zMapping.getcCs-y||Wntk
r$dSYnXdSdS)NFT)rs)r!r}rrrrIYs

	zMapping.__contains__cCs
t|�S)N)r)r!rrr�keysaszMapping.keyscCs
t|�S)N)r)r!rrr�itemsesz
Mapping.itemscCs
t|�S)N)r)r!rrr�valuesiszMapping.valuescCs5t|t�stSt|j��t|j��kS)N)rMrr%�dictr�)r!rOrrrrUmszMapping.__eq__)r*r+r,r-rr~r�rIr�r�r�rUrrrrrBs
c@s:eZdZd	Zdd�Zdd�Zdd�ZdS)
r�_mappingcCs
||_dS)N)r�)r!�mappingrrr�__init__yszMappingView.__init__cCs
t|j�S)N)rNr�)r!rrrrG|szMappingView.__len__cCs
dj|�S)Nz&{0.__class__.__name__}({0._mapping!r}))�format)r!rrr�__repr__szMappingView.__repr__N)r�)r*r+r,r-r�rGr�rrrrrusc@s@eZdZfZedd��Zdd�Zdd�ZdS)rcCs
t|�S)N)�set)r!rVrrrrW�szKeysView._from_iterablecCs
||jkS)N)r�)r!r}rrrrI�szKeysView.__contains__ccs|jEdHdS)N)r�)r!rrrrE�szKeysView.__iter__N)r*r+r,r-r.rWrIrErrrrr�sc@s@eZdZfZedd��Zdd�Zdd�ZdS)rcCs
t|�S)N)r�)r!rVrrrrW�szItemsView._from_iterablecCsD|\}}y|j|}Wntk
r5dSYnX||kSdS)NF)r�rs)r!�itemr}r2�vrrrrI�s
	zItemsView.__contains__ccs*x#|jD]}||j|fVq
WdS)N)r�)r!r}rrrrE�szItemsView.__iter__N)r*r+r,r-r.rWrIrErrrrr�s	c@s.eZdZfZdd�Zdd�ZdS)rcCs/x(|jD]}||j|kr
dSq
WdS)NTF)r�)r!r2r}rrrrI�szValuesView.__contains__ccs$x|jD]}|j|Vq
WdS)N)r�)r!r}rrrrE�szValuesView.__iter__N)r*r+r,r-rIrErrrrr�sc@s�eZdZfZedd��Zedd��Ze�Zedd�Z	dd�Z
d	d
�Zdd�Zd
dd�Z
d
S)rcCs
t�dS)N)rs)r!r}r2rrr�__setitem__�szMutableMapping.__setitem__cCs
t�dS)N)rs)r!r}rrr�__delitem__�szMutableMapping.__delitem__cCsHy||}Wn(tk
r8||jkr0�|SYnX||=|SdS)N)rs�_MutableMapping__marker)r!r}rr2rrrrw�s
	zMutableMapping.popcCsLytt|��}Wntk
r0t�YnX||}||=||fS)N)rvrur1rs)r!r}r2rrr�popitem�s

zMutableMapping.popitemcCs.yx|j�qWWntk
r)YnXdS)N)r�rs)r!rrrrx�s

zMutableMapping.clearcOs
|std��|^}}t|�dkrFtdt|���|r�|d}t|t�r�xw|D]}||||<qlWnXt|d�r�xF|j�D]}||||<q�Wn!x|D]\}}|||<q�Wx$|j�D]\}}|||<q�WdS)Nz@descriptor 'update' of 'MutableMapping' object needs an argumentrz+update expected at most 1 arguments, got %drr�)�	TypeErrorrNrMr�hasattrr�r�)rJrKr!rOr}r2rrr�update�s$

zMutableMapping.updateNcCs/y||SWntk
r*|||<YnX|S)N)rs)r!r}rrrr�
setdefaults

zMutableMapping.setdefault)r*r+r,r-rr�r��objectr�rwr�rxr�r�rrrrr�s	c@sjeZdZfZedd��Zdd�Zdd�Zdd�Zd	d
dd�Z	d
d�Z
d
S)rcCs
t�dS)N)�
IndexError)r!�indexrrrr~)szSequence.__getitem__ccsGd}y$x||}|V|d7}qWWntk
rBdSYnXdS)Nrr)r�)r!�ir�rrrrE-s

zSequence.__iter__cCs%x|D]}||krdSqWdS)NTFr)r!r2r�rrrrI7s
zSequence.__contains__ccs0x)ttt|���D]}||VqWdS)N)�reversed�rangerN)r!r�rrr�__reversed__=szSequence.__reversed__rNcCs�|dk	r1|dkr1tt|�|d�}|dk	rY|dkrY|t|�7}|}xT|dksz||kr�y|||kr�|SWntk
r�PYnX|d7}qbWt�dS)Nrr)�maxrNr��
ValueError)r!r2�start�stopr�rrrr�As
zSequence.indexcst�fdd�|D��S)Nc3s!|]}|�krdVqdS)rNr)r@r�)r2rrrAVsz!Sequence.count.<locals>.<genexpr>)�sum)r!r2r)r2r�countTszSequence.count)r*r+r,r-rr~rErIr�r�r�rrrrrs
c@seZdZfZdS)rN)r*r+r,r-rrrrr^sc@s�eZdZfZedd��Zedd��Zedd��Zdd�Zd	d
�Z	dd�Z
d
d�Zddd�Zdd�Z
dd�ZdS)rcCs
t�dS)N)r�)r!r�r2rrrr�vszMutableSequence.__setitem__cCs
t�dS)N)r�)r!r�rrrr�zszMutableSequence.__delitem__cCs
t�dS)N)r�)r!r�r2rrr�insert~szMutableSequence.insertcCs|jt|�|�dS)N)r�rN)r!r2rrr�append�szMutableSequence.appendcCs.yx|j�qWWntk
r)YnXdS)N)rwr�)r!rrrrx�s

zMutableSequence.clearcCsXt|�}xEt|d�D]3}|||d||||<|||d<qWdS)Nrar)rNr�)r!rir�rrr�reverse�szMutableSequence.reversecCs"x|D]}|j|�qWdS)N)r�)r!r�r�rrr�extend�s
zMutableSequence.extendrcCs||}||=|S)Nr)r!r�r�rrrrw�s
zMutableSequence.popcCs||j|�=dS)N)r�)r!r2rrrrt�szMutableSequence.removecCs|j|�|S)N)r�)r!r�rrr�__iadd__�s
zMutableSequence.__iadd__Nrc)r*r+r,r-rr�r�r�r�rxr�r�rwrtr�rrrrrks	lC)D�abcrrrd�__all__r*�typeru�bytes_iterator�	bytearray�bytearray_iteratorr��dict_keyiteratorr��dict_valueiteratorr��dict_itemiterator�
list_iteratorr��list_reverseiteratorr��range_iterator�longrange_iteratorr��set_iterator�str_iterator�tuple_iterator�zip�zip_iterator�	dict_keys�dict_values�
dict_itemsr$�mappingproxy�	generatorr �	coroutiner;rrr�registerrrr	r
rrr
rr�	frozensetrrrrrrrr�r�tuple�str�
memoryviewr�bytesr�listrrrr�<module>	s�				
0













6
�
O
0



\
9



	

A


?>