%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/util/__pycache__/
Upload File :
Create Path :
Current File : //opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/util/__pycache__/compat.cpython-37.pyc

B

��4].�@sdZddlZddlZddlZddlZddlZejdkZejdkZejdkZ	ejdkZ
ejdkZejdkZejdkZ
ej�d	�Zeed
�Zej�d�Zeo�eZejZejZejZeZe�dd
ddddddg�ZyddlZWnek
r�ddlZYnXe
�r
dd�ZneZdd�Z e�r4ddl!Z!ddl"Z"ddl#Z#ddl$Z$ddl%Z%ddl&m'Z'ddl(m)Z*ddl(m+Z+ddl$m,Z,ddl-m.Z.m/Z/m0Z0m1Z1m2Z2efZ3e4fZ5e4Z6eZ7e8fZ9e:Z;e$j<Z=e>Z?e@ZAeBe"d�ZCeBe"d�ZDeBe"d�ZEd d!�ZFd"d#�ZGd$d%�ZHd&d'�ZId(d)�ZJdWd*d+�ZKd,d-�ZLd.d/�ZMe
�r(eNZNnd0d1�ZN�n<ddl!Z!ddlOZ#ddl$Z$ddl+m+Z+ddlPm+Z*dd2l$mQZ,dd3lRm1Z1dd4lRm.Z.dd5lRm2Z2dd6lRm/Z/dd7lSm0Z0yddlTZ%Wnek
�r�ddl%Z%YnXeUfZ3e4fZ5eZ6eVZ7e8eWfZ9eNZNeJZJe'Z'e!jHZHe!jGZGe$jXZ=e$jYZ?e$jZZAd8d!�ZFdXd9d:�ZCd;d<�Z;d=d>�ZDd?d@�ZEdAd-�ZLdBd/�ZMdCd'�ZIdDdE�Z[e\dF�e	�r�ddGlm]Z]ddddHiiedId�dJd�dKd�dLd�e]fdMdN�Z^n(e�r�ddOlm_Z`dPdN�Z^nddOlm_Z^e�r�ddlambZcnddlZcejdQdR��ZddYdSdT�ZedUdV�ZfdS)Zz1Handle Python version/platform incompatibilities.�N)��)rr)r�)r�)rr)rrr�javaZpypy_version_info�win�FullArgSpec�args�varargs�varkw�defaults�
kwonlyargs�kwonlydefaults�annotationscCs|S)N�)�argrr�I/opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/util/compat.py�<lambda>7�rc	Cs�t�|�r|j}t�|�s(td�|���|j}t�|�sFtd�|���|j}|j	}t
r\|jnd}t|d|��}t||||��}||7}d}|j
tj@r�|j	|}|d}d}|j
tj@r�|j	|}t||||j|t
r�|jndt
r�|jni�S)z9Fully vendored version of getfullargspec from Python 3.3.z{!r} is not a Python functionz{!r} is not a code objectrN�)�inspectZismethod�__func__Z
isfunction�	TypeError�format�__code__Ziscode�co_argcount�co_varnames�py3k�co_kwonlyargcount�list�co_flagsZ
CO_VARARGSZCO_VARKEYWORDSr�__defaults__�__kwdefaults__�__annotations__)	�func�co�nargs�namesZnkwargsr	r
r
rrrr�inspect_getfullargspec<s8




r()�reduce)�BytesIO)�StringIO)�zip_longest)�
quote_plus�unquote_plus�	parse_qsl�quote�unquote�exec�
__import__�printcCs
|�d�S)Nzlatin-1)�encode)�srrr�b�sr7cCst�|�d��S)N�ascii)�base64�	b64decoder5)�xrrrr:�sr:cCst�|��d�S)Nr8)r9�	b64encode�decode)r;rrrr<�sr<cCs|j|dd�S)N�backslashreplace)�errors)r=)�text�encodingrrr�decode_backslashreplace�srBcCs||k||kS)Nr)�ar7rrr�cmp�srDcCs:|dk	r||k	std��||_|j|k	r2|�|��|�dS)NzSame cause emitted)�AssertionError�	__cause__�
__traceback__�with_traceback)�tp�value�tb�causerrr�reraise�s

rMcCs|S)Nr)r6rrr�u�srNcCs|S)Nr)r6rrr�ue�srOcCs
t|d�S)N�__call__)�hasattr)�fnrrr�callable�srS)�izip_longest)r0)r-)r1)r.)r/cCs|S)Nr)r6rrrr7�scCs|dkrtd�ntd�dS)Nzexec func_text in globals_zexec func_text in globals_, lcl)r2)Z	func_text�globals_Zlclrrr�exec_�s
rVcCsdd�|D�S)Ncss|]}t|�VqdS)N)�ord)�.0Zbyterrr�	<genexpr>�sziterbytes.<locals>.<genexpr>r)Zbufrrr�	iterbytes�srZcGs4t|�dkr,|dd�dd�|dD�f}t|�S)N�rrcSsg|]}t|��qSr)�str)rXrrrr�
<listcomp>�szimport_.<locals>.<listcomp>)�lenr3)r	rrr�import_�s r_cOsL|�dtj�}|dkrdSx,t|�D] }t|t�s:t|�}|�|�q$WdS)N�file)�pop�sys�stdout�	enumerate�
isinstance�
basestringr\�write)r	�kwargs�fprrrr�print_�s
rjcCs
t|d�S)Nzutf-8)�unicode)r6rrrrN�scCs
t|d�S)NZunicode_escape)rk)r6rrrrO�scCs4y
|�|�Stk
r.t|�dd���SXdS)Nr���)r=�UnicodeDecodeError�repr)r@rArrrrB�s
cCs<t|t�st|�jddd�St|t�r4|jddd�S|SdS)Nr8r>)r?)re�string_typesrkr5)r@rrr�safe_bytestring�s


rpz�def reraise(tp, value, tb=None, cause=None):
    if cause is not None:
        assert cause is not value, 'Same cause emitted'
    raise tp, value, tb
)�formatannotationrcCsd|S)N�*r)�namerrrrrcCsd|S)Nz**r)rsrrrrrcCsdt|�S)N�=)rn)rJrrrrrcCsd|S)Nz -> r)r@rrrrrc
s(���fdd�}
g}|r(t|�t|�}xFt|�D]:\}}|
|�}|rb||krb||
|||�}|�|�q2W|dk	r�|�||
|���n|r�|�d�|r�x:|D]2}|
|�}|r�||kr�||
||�7}|�|�q�W|dk	r�|�|	|
|���dd�|�d}d�k�r$||��d��7}|S)	aaCopy formatargspec from python 3.7 standard library.

        Python 3 has deprecated formatargspec and requested that Signature
        be used instead, however this requires a full reimplementation
        of formatargspec() in terms of creating Parameter objects and such.
        Instead of introducing all the object-creation overhead and having
        to reinvent from scratch, just copy their compatibility routine.

        Utimately we would need to rewrite our "decorator" routine completely
        which is not really worth it right now, until all Python 2.x support
        is dropped.

        cs(�|�}|�kr$|d��|�7}|S)Nz: r)r�result)rrq�	formatargrr�formatargandannotation-sz5inspect_formatargspec.<locals>.formatargandannotationNrr�(z, �)�return)r^rd�append�join)r	r
rrr
rrrvZ
formatvarargsZformatvarkwZformatvalueZ
formatreturnsrqrwZspecsZfirstdefault�ir�specZ	kwonlyargrur)rrqrvr�inspect_formatargspecs2


r)�
formatargspeccOst|dd�|�S)Nrr[)�_inspect_formatargspec)r~�kwrrrrUscgs�g}g}d}zTy:x.|D]&}|j}|j}|�|��|�|�qW|VWnt��}YnXWdx6|r�|��}y||�r~d}Wqdt��}YqdXqdW|dkr�t|d|d|d�XdS)z�Implement contextlib.nested, mostly for unit tests.

    As tests still need to run on py2.6 we can't use multiple-with yet.

    Function is removed in py3k but also emits deprecation warning in 2.7
    so just roll it here for everyone.

    )NNNNrrr)�__exit__�	__enter__r{rb�exc_inforarM)ZmanagersZexitsZvars_�excZmgrZexit_Zenterrrr�nestedfs*

r�cCsB|dkrt��}|\}}}||k	r&|nd}tt|�|||d�dS)N)rKrL)rbr�rM�type)Z	exceptionr��exc_type�	exc_valueZexc_tbrLrrr�raise_from_cause�s

r�cs"G��fdd�d��}|ddi�S)z�Create a base class with a metaclass.

    Drops the middle class upon creation.

    Source: http://lucumr.pocoo.org/2013/5/21/porting-to-python-3-redux/

    cs&eZdZejZejZ��fdd�ZdS)z!with_metaclass.<locals>.metaclasscs$|dkrt�||d|�S�|�|�S)Nr)r��__new__)�clsrsZ
this_bases�d)�bases�metarrr��sz)with_metaclass.<locals>.metaclass.__new__N)�__name__�
__module__�__qualname__r�rP�__init__r�r)r�r�rr�	metaclass�sr�Ztemporary_classNr)r�r�r�r)r�r�r�with_metaclass�s		r�)NN)N)N)g�__doc__�collections�
contextlibr�operatorrb�version_infoZpy36Zpy33Zpy35Zpy32rZpy2kZpy265�platform�
startswithZjythonrQZpypyZwin32Zcpython�contextmanager�
attrgetterZdottedgetter�
namedtuple�nextrZ	threading�ImportErrorZdummy_threadingZ
safe_kwargr\r(r9�builtinsZconfigparser�	itertools�pickle�	functoolsr)�ior*Zbyte_bufferr+r,Zurllib.parser-r.r/r0r1ro�bytesZbinary_typesZbinary_typeZ	text_type�intZ	int_types�iterrZ�filterfalseZitertools_filterfalse�filterZitertools_filter�mapZitertools_imap�getattrrVr_rjr7r:r<rBrDrMrNrOrSZConfigParserZ	cStringIOrTZurllibZurlparseZcPicklerfrkZlongZifilterfalseZifilterZimaprpr2rqrr�r�Zcollections.abc�abcZcollections_abcr�r�r�rrrr�<module>s








&




		5
#


Zerion Mini Shell 1.0