Hacked By AnonymousFox

Current Path : /opt/alt/python37/lib/python3.7/site-packages/future/backports/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/future/backports/__pycache__/misc.cpython-37.pyc

B

�A�[Z�@s�dZddlmZddlZddlmZddlmZm	Z	ddl
mZm
ZddlZddlZddlmZddlmZmZmZdd	lmZmZmZmZdd
l m!Z!m"Z"m#Z#m$Z$dd�Zdd
lm%Z%e$r�yddl&m'Z'Wn e(k
r�ddl)m'Z'YnXn4yddl*m'Z'Wn"e(k
�r"ddl+m'Z'YnXd3dd�Z,Gdd�de-�Z.Gdd�de/�Z0yddl
mZddlm1Z1Wne(k
�r�YnXdd�Z2Gdd�de/�Z3dd�Z4d4dd �Z5Gd!d"�d"e	�Z6dd#lm7Z7e7dfd$d%�Z8d&d'�Z9e0Z:e3Z;e4Z<e5Z=eZ>e2Z?e,Z@e6ZAe8ZBe9ZCejDd(k�rndd)lm0Z0m3Z3dd*lm5Z5dd+lEm9Z9ydd,lm4Z4Wne(k
�r`YnXdd-lm8Z8ejDd.k�r�ddlmZdd/lm2Z2ejDd0k�r�dd1lFm,Z,dd2lm6Z6dS)5a�
Miscellaneous function (re)definitions from the Py3.4+ standard library
for Python 2.6/2.7.

- math.ceil                (for Python 2.7)
- collections.OrderedDict  (for Python 2.6)
- collections.Counter      (for Python 2.6)
- collections.ChainMap     (for all versions prior to Python 3.3)
- itertools.count          (for Python 2.6, with step parameter)
- subprocess.check_output  (for Python 2.6)
- reprlib.recursive_repr   (for Python 2.6+)
- functools.cmp_to_key     (for Python 2.6)
�)�absolute_importN)�ceil)�Mapping�MutableMapping)�
itemgetter�eq)�proxy)�repeat�chain�starmap)�getaddrinfo�SOCK_STREAM�error�socket)�	iteritems�
itervalues�PY26�PY3cCstt|��S)zZ
    Return the ceiling of x as an int.
    This is the smallest integral value >= x.
    )�int�oldceil)�x�r�F/opt/alt/python37/lib/python3.7/site-packages/future/backports/misc.pyrsr)�islice)�	get_ident�...cs�fdd�}|S)zGDecorator to make a repr function return fillvalue for a recursive callcsLt�����fdd�}t�d�|_t�d�|_t�d�|_t�di�|_|S)Nc	sBt|�t�f}|�kr�S��|�z�|�}Wd��|�X|S)N)�idr�add�discard)�self�key�result)�	fillvalue�repr_running�
user_functionrr�wrapper?s
z<recursive_repr.<locals>.decorating_function.<locals>.wrapper�
__module__�__doc__�__name__�__annotations__)�set�getattrr&r'r(r))r$r%)r")r#r$r�decorating_function<sz+recursive_repr.<locals>.decorating_functionr)r"r,r)r"r�recursive_repr9sr-c@seZdZdZdS)�_Link)�prev�nextr �__weakref__N)r(r&�__qualname__�	__slots__rrrrr.Xsr.c@s�eZdZdZdd�Zejeefdd�Zej	fdd�Z	dd	�Z
d
d�Zdd
�Zd$dd�Z
d%dd�Zdd�ZejZZejZejZejZejZe�Zefdd�Zd&dd�Ze�dd��Zdd�Zdd�Zed'd d!��Z d"d#�Z!dS)(�OrderedDictz)Dictionary that remembers insertion ordercOs�|std��|d}|dd�}t|�dkr<tdt|���y
|jWn>tk
r�t�|_t|j�|_}||_|_i|_	YnX|j
||�dS)z�Initialize an ordered dictionary.  The signature is the same as
        regular dictionaries, but keyword arguments are not recommended because
        their insertion order is arbitrary.

        z?descriptor '__init__' of 'OrderedDict' object needs an argumentr�Nz$expected at most 1 arguments, got %d)�	TypeError�len�_OrderedDict__root�AttributeErrorr.�_OrderedDict__hardroot�_proxyr/r0�_OrderedDict__map�_OrderedDict__update)�args�kwdsr�rootrrr�__init__js
zOrderedDict.__init__c	CsZ||krJ|�|j|<}|j}|j}||||_|_|_||_||�|_||||�dS)z!od.__setitem__(i, y) <==> od[i]=yN)r<r8r/r0r )	rr �valueZdict_setitemrZLink�linkr@�lastrrr�__setitem__�s
zOrderedDict.__setitem__cCs2|||�|j�|�}|j}|j}||_||_dS)z od.__delitem__(y) <==> del od[y]N)r<�popr/r0)rr Zdict_delitemrC�	link_prev�	link_nextrrr�__delitem__�s
zOrderedDict.__delitem__ccs,|j}|j}x||k	r&|jV|j}qWdS)zod.__iter__() <==> iter(od)N)r8r0r )rr@�currrrr�__iter__�s

zOrderedDict.__iter__ccs,|j}|j}x||k	r&|jV|j}qWdS)z#od.__reversed__() <==> reversed(od)N)r8r/r )rr@rJrrr�__reversed__�s

zOrderedDict.__reversed__cCs*|j}||_|_|j��t�|�dS)z.od.clear() -> None.  Remove all items from od.N)r8r/r0r<�clear�dict)rr@rrrrM�s
zOrderedDict.clearTcCsj|std��|j}|r0|j}|j}||_||_n|j}|j}||_||_|j}|j|=t�||�}||fS)z�od.popitem() -> (k, v), return and remove a (key, value) pair.
        Pairs are returned in LIFO order if last is true or FIFO order if false.

        zdictionary is empty)�KeyErrorr8r/r0r r<rNrF)rrDr@rCrGrHr rBrrr�popitem�s zOrderedDict.popitemcCsn|j|}|j}|j}||_||_|j}|rL|j}||_||_||_|_n|j}||_||_||_|_dS)z�Move an existing element to the end (or beginning if last==False).

        Raises KeyError if the element does not exist.
        When last=True, acts like a fast version of self[key]=self.pop(key).

        N)r<r/r0r8)rr rDrCrGrHr@�firstrrr�move_to_end�s
zOrderedDict.move_to_endcCsVtj}t|�d}||j�}|||j�d7}|||j�|7}|||j�|7}|S)Nr5�)�sys�	getsizeofr7�__dict__r<r:r8)r�sizeof�n�sizerrr�
__sizeof__�s
zOrderedDict.__sizeof__cCs0||kr||}||=|S||jkr,t|��|S)z�od.pop(k[,d]) -> v, remove specified key and return the corresponding
        value.  If key is not found, d is returned if given, otherwise KeyError
        is raised.

        )�_OrderedDict__markerrO)rr �defaultr!rrrrF�s
zOrderedDict.popNcCs||kr||S|||<|S)zDod.setdefault(k[,d]) -> od.get(k,d), also set od[k]=d if k not in odr)rr r\rrr�
setdefaultszOrderedDict.setdefaultcCs*|sd|jjfSd|jjt|���fS)zod.__repr__() <==> repr(od)z%s()z%s(%r))�	__class__r(�list�items)rrrr�__repr__szOrderedDict.__repr__cCsHt|���}xtt��D]}|�|d�qW|jd|p8ddt|���fS)z%Return state information for picklingNr)�vars�copyr4rFr^�iterr`)rZ	inst_dict�krrr�
__reduce__szOrderedDict.__reduce__cCs
|�|�S)z!od.copy() -> a shallow copy of od)r^)rrrrrcszOrderedDict.copycCs |�}x|D]}|||<qW|S)zOD.fromkeys(S[, v]) -> New ordered dictionary with keys from S.
        If not specified, the value defaults to None.

        r)�cls�iterablerBrr rrr�fromkeyss
zOrderedDict.fromkeyscCs2t|t�r&t�||�o$ttt||��St�||�S)z�od.__eq__(y) <==> od==y.  Comparison to another OD is order-sensitive
        while comparison to a regular mapping is order-insensitive.

        )�
isinstancer4rN�__eq__�all�map�_eq)r�otherrrrrk$s
zOrderedDict.__eq__)T)T)N)N)"r(r&r2r'rArNrEr;r.rIrKrLrMrPrRrZr�updater=�keys�valuesr`�__ne__�objectr[rFr]r-rarfrc�classmethodrirkrrrrr4[s0
		

	


r4)r)�nlargestcCs*|j}x|D]}||d�d||<qWdS)z!Tally elements from the iterable.rr5N)�get)�mappingrhZmapping_get�elemrrr�_count_elements:s
rzcs�eZdZdZ�fdd�Zdd�Zd/dd�Zd	d
�Zed0dd��Z	�fd
d�Z
dd�Zdd�Zdd�Z
�fdd�Zdd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Z�ZS)1�Countera�Dict subclass for counting hashable items.  Sometimes called a bag
    or multiset.  Elements are stored as dictionary keys and their counts
    are stored as dictionary values.

    >>> c = Counter('abcdeabcdabcaba')  # count elements from a string

    >>> c.most_common(3)                # three most common elements
    [('a', 5), ('b', 4), ('c', 3)]
    >>> sorted(c)                       # list all unique elements
    ['a', 'b', 'c', 'd', 'e']
    >>> ''.join(sorted(c.elements()))   # list elements with repetitions
    'aaaaabbbbcccdde'
    >>> sum(c.values())                 # total of all counts
    15

    >>> c['a']                          # count of letter 'a'
    5
    >>> for elem in 'shazam':           # update counts from an iterable
    ...     c[elem] += 1                # by adding 1 to each element's count
    >>> c['a']                          # now there are seven 'a'
    7
    >>> del c['b']                      # remove all 'b'
    >>> c['b']                          # now there are zero 'b'
    0

    >>> d = Counter('simsalabim')       # make another counter
    >>> c.update(d)                     # add in the second counter
    >>> c['a']                          # now there are nine 'a'
    9

    >>> c.clear()                       # empty the counter
    >>> c
    Counter()

    Note:  If a count is set to zero or reduced to zero, it will remain
    in the counter until the entry is deleted or the counter is cleared:

    >>> c = Counter('aaabbc')
    >>> c['b'] -= 2                     # reduce the count of 'b' by two
    >>> c.most_common()                 # 'b' is still in, but its count is zero
    [('a', 3), ('c', 1), ('b', 0)]

    csZ|std��|d}|dd�}t|�dkr<tdt|���tt|���|j||�dS)a	Create a new, empty Counter object.  And if given, count elements
        from an input iterable.  Or, initialize the count from another mapping
        of elements to their counts.

        >>> c = Counter()                           # a new, empty counter
        >>> c = Counter('gallahad')                 # a new counter from an iterable
        >>> c = Counter({'a': 4, 'b': 2})           # a new counter from a mapping
        >>> c = Counter(a=4, b=2)                   # a new counter from keyword args

        z;descriptor '__init__' of 'Counter' object needs an argumentrr5Nz$expected at most 1 arguments, got %d)r6r7�superr{rArp)r>r?r)r^rrrAsszCounter.__init__cCsdS)z1The count of elements not in the Counter is zero.rr)rr rrr�__missing__�szCounter.__missing__NcCs6|dkrt|��td�dd�Stj||��td�d�S)z�List the n most common elements and their counts from the most
        common to the least.  If n is None, then list all element counts.

        >>> Counter('abcdeabcdabcaba').most_common(3)
        [('a', 5), ('b', 4), ('c', 3)]

        Nr5T)r �reverse)r )�sortedr`�_itemgetter�_heapqrv)rrXrrr�most_common�s	zCounter.most_commoncCst�tt|����S)a�Iterator over elements repeating each as many times as its count.

        >>> c = Counter('ABCABC')
        >>> sorted(c.elements())
        ['A', 'A', 'B', 'B', 'C', 'C']

        # Knuth's example for prime factors of 1836:  2**2 * 3**3 * 17**1
        >>> prime_factors = Counter({2: 2, 3: 3, 17: 1})
        >>> product = 1
        >>> for factor in prime_factors.elements():     # loop over factors
        ...     product *= factor                       # and multiply them
        >>> product
        1836

        Note, if an element's count has been set to zero or is a negative
        number, elements() will ignore it.

        )�_chain�
from_iterable�_starmap�_repeatr`)rrrr�elements�szCounter.elementscCstd��dS)Nz@Counter.fromkeys() is undefined.  Use Counter(iterable) instead.)�NotImplementedError)rgrh�vrrrri�szCounter.fromkeyscs�|std��|d}|dd�}t|�dkr<tdt|���|rH|dnd}|dk	r�t|t�r�|r�|j}x8|��D]\}}|||d�||<qrWq�tt|��|�n
t	||�|r�|�|�dS)a�Like dict.update() but add counts instead of replacing them.

        Source can be an iterable, a dictionary, or another Counter instance.

        >>> c = Counter('which')
        >>> c.update('witch')           # add elements from another iterable
        >>> d = Counter('watch')
        >>> c.update(d)                 # add elements from another counter
        >>> c['h']                      # four 'h' in which, witch, and watch
        4

        z9descriptor 'update' of 'Counter' object needs an argumentrr5Nz$expected at most 1 arguments, got %d)
r6r7rjrrwr`r|r{rprz)r>r?rrh�self_getry�count)r^rrrp�s"

zCounter.updatecOs�|std��|d}|dd�}t|�dkr<tdt|���|rH|dnd}|dk	r�|j}t|t�r�xH|��D]\}}||d�|||<qnWn x|D]}||d�d||<q�W|r�|�|�dS)a�Like dict.update() but subtracts counts instead of replacing them.
        Counts can be reduced below zero.  Both the inputs and outputs are
        allowed to contain zero and negative counts.

        Source can be an iterable, a dictionary, or another Counter instance.

        >>> c = Counter('which')
        >>> c.subtract('witch')             # subtract elements from another iterable
        >>> c.subtract(Counter('watch'))    # subtract elements from another counter
        >>> c['h']                          # 2 in which, minus 1 in witch, minus 1 in watch
        0
        >>> c['w']                          # 1 in which, minus 1 in witch, minus 1 in watch
        -1

        z;descriptor 'subtract' of 'Counter' object needs an argumentrr5Nz$expected at most 1 arguments, got %d)r6r7rwrjrr`�subtract)r>r?rrhr�ryr�rrrr��s 

zCounter.subtractcCs
|�|�S)zReturn a shallow copy.)r^)rrrrrcszCounter.copycCs|jt|�ffS)N)r^rN)rrrrrf	szCounter.__reduce__cs||krtt|��|�dS)zGLike dict.__delitem__() but does not raise KeyError for missing values.N)r|r{rI)rry)r^rrrIszCounter.__delitem__cCs`|sd|jjSy&d�tdj|����}d|jj|fStk
rZd�|jjt|��SXdS)Nz%s()z, z%r: %rz%s({%s})z
{0}({1!r}))	r^r(�joinrm�__mod__r�r6�formatrN)rr`rrrraszCounter.__repr__cCsxt|t�stSt�}x0|��D]$\}}|||}|dkr|||<qWx,|��D] \}}||krP|dkrP|||<qPW|S)zAdd counts from two counters.

        >>> Counter('abbb') + Counter('bcc')
        Counter({'b': 4, 'c': 2, 'a': 1})

        r)rjr{�NotImplementedr`)rror!ryr��newcountrrr�__add__$s
zCounter.__add__cCs|t|t�stSt�}x0|��D]$\}}|||}|dkr|||<qWx0|��D]$\}}||krP|dkrPd|||<qPW|S)z� Subtract count, but keep only results with positive counts.

        >>> Counter('abbbc') - Counter('bccd')
        Counter({'b': 2, 'a': 1})

        r)rjr{r�r`)rror!ryr�r�rrr�__sub__7s
zCounter.__sub__cCs�t|t�stSt�}x<|��D]0\}}||}||kr:|n|}|dkr|||<qWx,|��D] \}}||kr\|dkr\|||<q\W|S)z�Union is the maximum of value in either of the input counters.

        >>> Counter('abbb') | Counter('bcc')
        Counter({'b': 3, 'c': 2, 'a': 1})

        r)rjr{r�r`)rror!ryr��other_countr�rrr�__or__Js
zCounter.__or__cCsVt|t�stSt�}x<|��D]0\}}||}||kr:|n|}|dkr|||<qW|S)z� Intersection is the minimum of corresponding counts.

        >>> Counter('abbb') & Counter('bcc')
        Counter({'b': 1})

        r)rjr{r�r`)rror!ryr�r�r�rrr�__and__^s
zCounter.__and__cCs
|t�S)zEAdds an empty counter, effectively stripping negative and zero counts)r{)rrrr�__pos__oszCounter.__pos__cCs
t�|S)z{Subtracts from an empty counter.  Strips positive and zero counts,
        and flips the sign on negative counts.

        )r{)rrrr�__neg__sszCounter.__neg__cCs*dd�|��D�}x|D]
}||=qW|S)z?Internal method to strip elements with a negative or zero countcSsg|]\}}|dks|�qS)rr)�.0ryr�rrr�
<listcomp>|sz*Counter._keep_positive.<locals>.<listcomp>)r`)r�nonpositiveryrrr�_keep_positivezs

zCounter._keep_positivecCs.x$|��D]\}}|||7<q
W|��S)z�Inplace add from another counter, keeping only positive counts.

        >>> c = Counter('abbb')
        >>> c += Counter('bcc')
        >>> c
        Counter({'b': 4, 'c': 2, 'a': 1})

        )r`r�)rroryr�rrr�__iadd__�s	zCounter.__iadd__cCs.x$|��D]\}}|||8<q
W|��S)z�Inplace subtract counter, but keep only results with positive counts.

        >>> c = Counter('abbbc')
        >>> c -= Counter('bccd')
        >>> c
        Counter({'b': 2, 'a': 1})

        )r`r�)rroryr�rrr�__isub__�s	zCounter.__isub__cCs6x,|��D] \}}||}||kr
|||<q
W|��S)z�Inplace union is the maximum of value from either counter.

        >>> c = Counter('abbb')
        >>> c |= Counter('bcc')
        >>> c
        Counter({'b': 3, 'c': 2, 'a': 1})

        )r`r�)rroryr�r�rrr�__ior__�s
	zCounter.__ior__cCs6x,|��D] \}}||}||kr
|||<q
W|��S)z�Inplace intersection is the minimum of corresponding counts.

        >>> c = Counter('abbb')
        >>> c &= Counter('bcc')
        >>> c
        Counter({'b': 1})

        )r`r�)rroryr�r�rrr�__iand__�s
	zCounter.__iand__)N)N)r(r&r2r'rAr}r�r�rurirpr�rcrfrIrar�r�r�r�r�r�r�r�r�r�r��
__classcell__rr)r^rr{@s0+

)#

r{cOshd|krtd��tj|dtji|��}|��\}}|��}|rd|�d�}|dkrX|d}t�||��|S)z[
    For Python 2.6 compatibility: see
    http://stackoverflow.com/questions/4814970/
    �stdoutz3stdout argument not allowed, it will be overridden.r>Nr)�
ValueError�
subprocess�Popen�PIPE�communicate�pollrw�CalledProcessError)�	popenargs�kwargs�process�outputZ
unused_err�retcode�cmdrrr�check_output�s
r�r5ccsx|V||7}qWdS)z�
    ``itertools.count`` in Py 2.6 doesn't accept a step
    parameter. This is an enhanced version of ``itertools.count``
    for Py2.6 equivalent to ``itertools.count`` in Python 2.7+.
    Nr)�start�steprrrr��sr�c@s�eZdZdZdd�Zdd�Zdd�Zd'd	d
�Zdd�Zd
d�Z	dd�Z
dd�ZeZe
�dd��Zedd��Zdd�ZeZd(dd�Zedd��Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�ZdS))�ChainMapa� A ChainMap groups multiple dicts (or other mappings) together
    to create a single, updateable view.

    The underlying mappings are stored in a list.  That list is public and can
    accessed or updated using the *maps* attribute.  There is no other state.

    Lookups search the underlying mappings successively until a key is found.
    In contrast, writes, updates, and deletions only operate on the first
    mapping.

    cGst|�pig|_dS)z�Initialize a ChainMap by setting *maps* to the given mappings.
        If no mappings are provided, a single empty dictionary is used.

        N)r_�maps)rr�rrrrA�szChainMap.__init__cCst|��dS)N)rO)rr rrrr}�szChainMap.__missing__c	Cs8x,|jD]"}y||Stk
r(YqXqW|�|�S)N)r�rOr})rr rxrrr�__getitem__�s
zChainMap.__getitem__NcCs||kr||S|S)Nr)rr r\rrrrw�szChainMap.getcCstt�j|j��S)N)r7r*�unionr�)rrrr�__len__szChainMap.__len__cCstt�j|j��S)N)rdr*r�r�)rrrrrKszChainMap.__iter__cst�fdd�|jD��S)Nc3s|]}�|kVqdS)Nr)r��m)r rr�	<genexpr>sz(ChainMap.__contains__.<locals>.<genexpr>)�anyr�)rr r)r r�__contains__szChainMap.__contains__cCs
t|j�S)N)r�r�)rrrr�__bool__	szChainMap.__bool__cCsd�|d�tt|j���S)Nz{0.__class__.__name__}({1})z, )r�r�rm�reprr�)rrrrraszChainMap.__repr__cGs|tj|f|���S)z?Create a ChainMap with a single dict created from the iterable.)rNri)rgrhr>rrrriszChainMap.fromkeyscCs$|j|jd��f|jdd���S)zHNew ChainMap or subclass with a new copy of maps[0] and refs to maps[1:]rr5N)r^r�rc)rrrrrcsz
ChainMap.copycCs|dkri}|j|f|j��S)z�
        New ChainMap with a new map followed by all previous maps. If no
        map is provided, an empty dict is used.
        N)r^r�)rr�rrr�	new_childszChainMap.new_childcCs|j|jdd��S)zNew ChainMap from maps[1:].r5N)r^r�)rrrr�parents(szChainMap.parentscCs||jd|<dS)Nr)r�)rr rBrrrrE-szChainMap.__setitem__cCs8y|jd|=Wn"tk
r2td�|���YnXdS)Nrz)Key not found in the first mapping: {0!r})r�rOr�)rr rrrrI0szChainMap.__delitem__cCs0y|jd��Stk
r*td��YnXdS)zPRemove and return an item pair from maps[0]. Raise KeyError is maps[0] is empty.rz#No keys found in the first mapping.N)r�rPrO)rrrrrP6szChainMap.popitemcGs>y|jdj|f|��Stk
r8td�|���YnXdS)zWRemove *key* from maps[0] and return its value. Raise KeyError if *key* not in maps[0].rz)Key not found in the first mapping: {0!r}N)r�rFrOr�)rr r>rrrrF=szChainMap.popcCs|jd��dS)z'Clear maps[0], leaving maps[1:] intact.rN)r�rM)rrrrrMDszChainMap.clear)N)N)r(r&r2r'rAr}r�rwr�rKr�r��__nonzero__r-rarurirc�__copy__r��propertyr�rErIrPrFrMrrrrr��s*

	r�)�_GLOBAL_DEFAULT_TIMEOUTcCs�|\}}d}x�t||dt�D]�}|\}}}	}
}d}y:t|||	�}|tk	rR|�|�|r`|�|�|�|�|Stk
r�}
z|
}|dk	r�|��Wdd}
~
XYqXqW|dk	r�|�ntd��dS)a�Backport of 3-argument create_connection() for Py2.6.

    Connect to *address* and return the socket object.

    Convenience function.  Connect to *address* (a 2-tuple ``(host,
    port)``) and return the socket object.  Passing the optional
    *timeout* parameter will set the timeout on the socket instance
    before attempting to connect.  If no *timeout* is supplied, the
    global default timeout setting returned by :func:`getdefaulttimeout`
    is used.  If *source_address* is set it must be a tuple of (host, port)
    for the socket to bind as a source address before making the connection.
    An host of '' or port 0 tells the OS to use the default.
    Nrz!getaddrinfo returns an empty list)	rr
rr��
settimeout�bind�connectr�close)�address�timeout�source_address�host�port�err�res�af�socktype�proto�	canonname�sa�sock�_rrr�create_connectionNs(


r�csG�fdd�dt�}|S)z,Convert a cmp= function into a key= functioncsjeZdZdgZdd�Z�fdd�Z�fdd�Z�fdd	�Z�fd
d�Z�fdd
�Z	�fdd�Z
dd�ZdS)zcmp_to_key.<locals>.K�objcWs
||_dS)N)r�)rr�r>rrrrA{szcmp_to_key.<locals>.K.__init__cs�|j|j�dkS)Nr)r�)rro)�mycmprr�__lt__}szcmp_to_key.<locals>.K.__lt__cs�|j|j�dkS)Nr)r�)rro)r�rr�__gt__szcmp_to_key.<locals>.K.__gt__cs�|j|j�dkS)Nr)r�)rro)r�rrrk�szcmp_to_key.<locals>.K.__eq__cs�|j|j�dkS)Nr)r�)rro)r�rr�__le__�szcmp_to_key.<locals>.K.__le__cs�|j|j�dkS)Nr)r�)rro)r�rr�__ge__�szcmp_to_key.<locals>.K.__ge__cs�|j|j�dkS)Nr)r�)rro)r�rrrs�szcmp_to_key.<locals>.K.__ne__cSstd��dS)Nzhash not implemented)r6)rrrr�__hash__�szcmp_to_key.<locals>.K.__hash__N)r(r&r2r3rAr�r�rkr�r�rsr�r)r�rr�Kysr�)rt)r�r�r)r�r�
cmp_to_keywsr�)rS�)r4r{)r�)r�)r�)r�)�r)rz)r�r�)r-)r�)r)rr5)Gr'�
__future__rr��mathrr�collectionsrr�operatorrr�rrnrT�heapqr��_weakrefrr;�	itertoolsr	r�r
r�rr�rrr
rZfuture.utilsrrrrr�_threadr�ImportError�
_dummy_thread�threadZdummy_threadr-rtr.rNr4rvrzr{r�r�r�r�r�r��_OrderedDictZ_CounterZ
_check_output�_count�_ceilZ__count_elements�_recursive_repr�	_ChainMapZ_create_connectionZ_cmp_to_key�version_info�	functools�reprlibrrrr�<module>
s�
V|
l(

Hacked By AnonymousFox1.0, Coded By AnonymousFox