uawdijnntqw1x1x1
IP : 18.222.62.161
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
..
/
lib
/
python2.7
/
site-packages
/
procfs
/
..
/
rhn
/
..
/
decorator.pyc
/
/
� ��Pc@sVdZdZdddgZddlZddlZddlZejdkrjddlmZd �Znd e fd��YZd�Zej d �Zde fd��YZdd�Zd�Zy2ddlmZedefede��ZWnNek rEddlmZd�Zedefedede��ZnXee�ZdS(sT Decorator module, see http://pypi.python.org/pypi/decorator for the documentation. s3.4.0t decoratort FunctionMakertcontextmanageri����Nt3(tgetfullargspeccCs|jS(N(t__init__(tcls((s-/usr/lib/python2.7/site-packages/decorator.pytget_init*sRcBs eZdZd�Zd�ZRS(s?A quick and dirty replacement for getfullargspec for Python 2.XcCs=tj|�\|_|_|_|_g|_d|_dS(N( tinspectt getargspectargstvarargstvarkwtdefaultst kwonlyargstNonetkwonlydefaults(tselftf((s-/usr/lib/python2.7/site-packages/decorator.pyR/s' ccs$|jV|jV|jV|jVdS(N(R RRR (R((s-/usr/lib/python2.7/site-packages/decorator.pyt__iter__4s(t__name__t __module__t__doc__RR(((s-/usr/lib/python2.7/site-packages/decorator.pyR-s cCs |jjS(N(Rtim_func(R((s-/usr/lib/python2.7/site-packages/decorator.pyR9ss\s*def\s*([_\w][_\w\d]*)\s*\(cBs_eZdZdddddddd�Zd�Zded�Zeddde d��Z RS(s� An object with the ability to create functions with a given signature. It has attributes name, doc, module, signature, defaults, dict and methods update and make. cCs�||_|r.|j|_|jdkr6d|_n|j|_|j|_tj|�r.t |�}t |di�|_x'dD]} t|| t || ��q�Wx1t |j�D] \} }t|d | |�q�Wtjdkrtjdd �|�dd!|_|_n�t|j�}t|j�} |jri|jd|j�| jd|j�n|jr�|jd�nx9|jD].} |jd| �| jd| | f�q�W|jr�|jd|j�| jd|j�ndj|�|_dj| �|_|jj�|_q.n|r@||_n|dk rX||_n|rj||_n|r|||_n|r�||_n|r�||_nt|d�s�t�t|d�s�t d|��ndS(Ns<lambda>t_lambda_t__annotations__R RRR RRsarg%dRtformatvaluecSsdS(Nt((tval((s-/usr/lib/python2.7/site-packages/decorator.pyt<lambda>Zsii����t*s%s=Nones%s=%ss**s, tnamet signatures%You are decorating a non function: %s(sargssvarargssvarkwsdefaultss kwonlyargsskwonlydefaults(!tshortsignatureRRRtdocRtmoduleRt isfunctionRtgetattrtannotationstsetattrt enumerateR tsystversiont formatargspecR tlistRtappendRRtjoint__dict__tcopytdictRR thasattrtAssertionErrort TypeError(RtfuncRR R R"R#tfuncdicttargspectatitargtallargstallshortargs((s-/usr/lib/python2.7/site-packages/decorator.pyREsb # cKs�|j|_t|dd �|_t|di�|_t|dd�|_t|dd �|_t|dd �|_t j d�jjdd�}t|d |�|_ |jj|�d S(s2Update the signature of func with the data in selfR"R1R RR&iRt?R#N((RRR%RRR/t func_defaultst__kwdefaults__RR)t _getframet f_globalstgetRtupdate(RR5tkwtcallermodule((s-/usr/lib/python2.7/site-packages/decorator.pyRC~sc Js\|e|�}|pi}ej|�}|d krJed|��n|jd�}e|gg|jjd�D]}|j d�^qu�} x3| D]+} | dkr�e d| |f��q�q�W|jd�s�|d7}nye|d d �}||UWn$e jdIJe j|IJ�nX||}|rH||d<n|j||�|S(sBMake a new function from a given template and update the signatures not a valid function template %sit,s *t_func_t_call_s%s is overridden in %ss s<string>tsinglesError in generated code:t __source__N(s_func_RH(tvarstDEFtmatchRtSyntaxErrortgrouptsetR!tsplittstript NameErrortendswithtcompileR)tstderrRC( Rt src_templtevaldictt addsourcetattrstsrctmoRR:tnamestntcodeR5((s-/usr/lib/python2.7/site-packages/decorator.pytmake�s2/ cKs�t|t�r@|j�jdd�\} } | d }d}nd} d}|}||| ||||�} djd�|j�D��}| jd||||�S(s� Create a function from the strings name, signature and body. evaldict is the evaluation dictionary. If addsource is true an attribute __source__ is added to the result. The attributes attrs are added, if any. t(ii����s css|]}d|VqdS(s N((t.0tline((s-/usr/lib/python2.7/site-packages/decorator.pys <genexpr>�ssdef %(name)s(%(signature)s): N(t isinstancetstrRRRQRR.t splitlinesR`(RtobjtbodyRXR R"R#RYRZRtrestR R5Rtibody((s-/usr/lib/python2.7/site-packages/decorator.pytcreate�s N(RRRRRRCtFalseR`tclassmethodtTrueRk(((s-/usr/lib/python2.7/site-packages/decorator.pyR?s 8 cCs�|dk rN|jj�}||d<||d<tj|d|d|d|�Stj|�r�|jj�}t |�}d|j|jf}t |�jd}n�tj|�r�|jdkr�d n|j}|}|j }t |�jd }n=|jjj�}|jj}|jj }t |�jd}|jj�}||d<t|d<tjd||fd ||d|d|d|d|j�SdS(s� decorator(caller) converts a caller function into a decorator; decorator(caller, func) decorates a function using a caller. RHRGs)return _call_(_func_, %(shortsignature)s)tundecoratedt__wrapped__sHdecorator(%s) converts functions/generators into factories of %s objectsis<lambda>RiRs%s(%s)sreturn decorator(_call_, %s)R"R#N(Rtfunc_globalsR0RRkRtisclassRtlowerRRR R$Rt __class__t__call__RRR(tcallerR5RXRt callerfuncR"tfun((s-/usr/lib/python2.7/site-packages/decorator.pyR�s> cCs(tj|dtd|d|�d|�S(sContext manager decorators.with _self_: return _func_(%(shortsignature)s)t_self_RGRp(RRkR1(RR5((s-/usr/lib/python2.7/site-packages/decorator.pyRu�s(t_GeneratorContextManagertContextManagerRu(tGeneratorContextManagercOstj||||��S(N(R|R(RRR8tk((s-/usr/lib/python2.7/site-packages/decorator.pyR�sR(Rt__version__t__all__R)treRR*RRtobjectRURLRRRRut contextlibRzttypeR1R{tImportErrorR|RR(((s-/usr/lib/python2.7/site-packages/decorator.pyt<module>!s.$ ~)
/home/../lib/python2.7/site-packages/procfs/../rhn/../decorator.pyc