%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/alembic/util/
Upload File :
Create Path :
Current File : //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyo

�
�M!Vc@sDddlZddlZddlZddlZddlZddlmZmZmZm	Z	ddl
mZmZddl
mZdefd��YZde	e�fd	��YZd
�Zd�Zd�Zdd
�Zdd�Zdd�Zd�Zdefd��YZdefd��YZdefd��YZdS(i����Ni(tcallabletexec_tstring_typestwith_metaclass(tformat_argspec_plustupdate_wrapper(tinspect_getfullargspect_ModuleClsMetacBseZd�ZRS(cCs*tt|�j||�|j|�dS(N(tsuperRt__setattr__t_update_module_proxies(tclstkeytvalue((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyR	s(t__name__t
__module__R	(((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyR
stModuleClsProxycBs}eZdZejd��Zed��Zd�Zd�Z	ed��Z
ed��Zed��Zed��Z
RS(	s�Create module level proxy functions for the
    methods on a given class.

    The functions will have a compatible signature
    as the methods.

    cCs
t�gfS(N(tset(((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyt<lambda>scCsD|j|\}}x*|D]"\}}|j||||�qWdS(N(t_setupst_add_proxied_attribute(Rtnamet
attr_namestmodulestglobals_tlocals_((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyR
scCs_|j|j\}}xB|D]:\}}||d<x!|D]}t||�||<q:WqWdS(Nt_proxy(Rt	__class__tgetattr(tselfRRRRt	attr_name((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyt_install_proxy$s


cCsS|j|j\}}x6|D].\}}d|d<x|D]
}||=q:WqWdS(NR(RRtNone(RRRRRR((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyt
_remove_proxy+s


cCs=|j|\}}|j||f�|j|||�dS(N(Rtappendt_setup_proxy(RRRRR((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pytcreate_module_class_proxy2s
cCs1x*t|�D]}|j||||�q
WdS(N(tdirR(RRRRtmethname((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyR#:scCsZ|jd�sVt||�}t|�rF|j|||�||<qV|j|�ndS(Nt_(t
startswithRRt_create_method_proxytadd(RR&RRRtmeth((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyR?scs�t�|�}tj|�}|drP|dddkrP|djd�ntj|�}d}|dr�|t|d�7}n|d}|r�|d|}	nd}	tj||d|d|	dd��}
�fd�}||d	<t|d
g�}|rCd}
}d|jt|�|f}d
�}||d<n |dd!}
|
dd!}d}tj	di|d6|d6|
d6|d6|j
d6�}i}t|||�||S(NiRiiitformatvaluecSsd|S(Nt=((tx((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyR\scstd|�jf��dS(Ns�Can't invoke function '%s', as the proxy object has not yet been established for the Alembic '%s' class.  Try placing this code inside a callable.(t	NameErrorR(R(R(sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyt_name_error^sR0t_legacy_translationss*args, **kws+args, kw = _translate(%r, %r, %r, args, kw)cSsi}g}xP|D]H\}}||krtjd|||f�|j|�||<qqW|j|�t|�}|dr�|dt|d� }	n
|d}	x[|	D]S}
|
|kr�y|j|jd��Wqtk
r�td|
��qXq�q�W|j	|�||fS(Ns,Argument %r is now named %r for method %s().iis(missing required positional argument: %s(
twarningstwarntpoptupdatetlisttlenR"t
IndexErrort	TypeErrortextend(tfn_nametspecttranslationstargstkwt	return_kwtreturn_argstoldnametnewnametpos_onlytarg((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyt	translateqs.





t
_translatei����ts        def %(name)s(%(args)s):
            %(doc)r
            %(translate)s
            try:
                p = _proxy
            except NameError:
                _name_error('%(name)s')
            return _proxy.%(name)s(%(apply_kw)s)
            e
        RRFR>tapply_kwtdoc((Rtinspectt
getargspecR4t
formatargspecR7Rttuplettextwraptdedentt__doc__R(RRRRtfnR<R>tnum_defaultst	name_argstdefaulted_valsRIR0R=t
outer_argst
inner_argst
translate_strRFt	func_texttlcl((RsI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyR)IsP



	
	



(RRRQtcollectionstdefaultdictRtclassmethodR
RR!R$R#RR)(((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyRs		
cs�fd�}|S(Ncs
�|_|S(N(R1(RR(R=(sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pytdecorate�s	((R=R^((R=sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyt_with_legacy_names�scCs|dk	o|j�dkS(Nttrue(R tlower(R
((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pytasbool�scCs'ttj��d}t|�dd!S(NI@z�Zii����(tinttuuidtuuid4thex(tval((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pytrev_id�scCsM|dkr|St|t�r&|gSt|tj�rBt|�S|gSdS(N(R t
isinstanceRR[tIterableR6(R.tdefault((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pytto_list�s
cCsM|dkr|St|t�r&|fSt|tj�rBt|�S|fSdS(N(R RiRR[RjRN(R.Rk((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pytto_tuple�s
cCs�t�}|j}|sHg|D]%}||kr||�r|^qSg|D]1}||�|krO|||��rO|^qOSdS(N(RR*(tseqthashfunctseentseen_addR.((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pytunique_list�s		

cCstt|��S(N(RNRr(ttup((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pytdedupe_tuple�stmemoized_propertycBs#eZdZdd�Zd�ZRS(s2A read-only @property that is only evaluated once.cCs+||_|p|j|_|j|_dS(N(tfgetRQR(RRvRJ((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyt__init__�s	cCs1|dkr|S|j|�|j|j<}|S(N(R Rvt__dict__R(RtobjRtresult((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyt__get__�sN(RRRQR RwR{(((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyRu�st
immutabledictcBs`eZd�ZeZZZZZZZ	Z
d�Zd�Zd�Z
d�Zd�ZRS(cOstd|jj��dS(Ns%s object is immutable(R9RR(RRER?((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyt
_immutable�scGs#tj|�}tj||�|S(N(tdictt__new__Rw(RR>tnew((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyR�scGsdS(N((RR>((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyRwscCstt|�ffS(N(R|R~(R((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyt
__reduce__scCs4|st|�St|�}tj||�|SdS(N(R|R~R5(Rtdtd2((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pytunion	s

cCsdtj|�S(Nsimmutabledict(%s)(R~t__repr__(R((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyR�s(RRR}t__delitem__t__setitem__R	tclearR4tpopitemt
setdefaultR5RRwR�R�R�(((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyR|�s	"				t
DispatchercBs>eZed�Zdd�Zdd�Zd�Zd�ZRS(cCsi|_||_dS(N(t	_registrytuselist(RR�((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyRws	Rkcs���fd�}|S(NcsE�jr.�jj��fg�j|�n|�j��f<|S(N(R�R�R�R"(RR(t	qualifierRttarget(sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyR^s	%((RR�R�R^((R�RR�sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pytdispatch_forscCs�t|t�r|g}n*t|t�r6|j}nt|�j}x�|D]p}|dkr�||f|jkr�|j|j||f�S|df|jkrL|j|j|df�SqLWtd|��dS(NRks#no dispatch function for object: %s(RiRttypet__mro__R�t_fn_or_listt
ValueError(RRyR�ttargetstspcls((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pytdispatch$s
!cs$|jr�fd�}|S�SdS(Ncs"x�D]}|||�qWdS(N((RER?RR(t
fn_or_list(sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pytgo9s
(R�(RR�R�((R�sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyR�7s	csOt�}�jr8|jj�fd��jD��n|jj�j�|S(sHReturn a copy of this dispatcher that is independently
        writable.c3s5|]+}|g�j|D]}|^qfVqdS(N(R�(t.0tkRR(R(sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pys	<genexpr>Gs(R�R�R�R5(RR�((RsI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pytbranch@s			(RRtFalseRwR�R�R�R�(((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyR�s

		(ROR2RKRdR[tcompatRRRRtsqlalchemy.utilRRtsqlalchemy.util.compatRR�RRR_RbRhR RlRmRrRttobjectRuR~R|R�(((sI/opt/alt/python27/lib/python2.7/site-packages/alembic/util/langhelpers.pyt<module>s&"�			
	 

Zerion Mini Shell 1.0