Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3
5*[Z¸@ ã @ s¸ d Z ddlmZ ddlZddlZddlZddlZddlZddlZdZ ej
dkrdddlmZ dd„ Znej
d d
ƒZdd„ Zd
d„ Zy
ejZW n ek
r¦ dd„ ZY nX ej
ddƒZdd„ ZejdƒZG dd„ deƒZf fdd„Zd*dd„ZyddlmZ W n" ek
�r ddlmZ Y nX G dd„ deƒZeejƒZe ej!ƒZ"e"dk�rhej# �rhd d!„ Zee_n,e"dk�r|ej#�r|ne"d"k�r”d#d!„ Zee_eeƒZ$d$d%„ Z%d&d'„ Z&d(d)„ Z'dS )+zT
Decorator module, see http://pypi.python.org/pypi/decorator
for the documentation.
é )Úprint_functionNz4.2.1Ú3)Úgetfullargspecc C s | j S )N)Ú__init__)Úcls© r ú/usr/lib/python3.6/decorator.pyÚget_init0 s r ÚFullArgSpecz5args varargs varkw defaults kwonlyargs kwonlydefaultsc C s t jtj| ƒg df ƒS )z?A quick and dirty replacement for getfullargspec for Python 2.XN)r
Ú_makeÚinspectÚ
getargspec)Úfr r r r 7 s r c C s | j jS )N)r Ú__func__)r r r r r ; s c C s dS )NFr )r r r r ÚiscoroutinefunctionB s r ÚArgSpeczargs varargs varkw defaultsc C s t | ƒ}t|j|j|j|jƒS )z$A replacement for inspect.getargspec)r r ÚargsÚvarargsÚvarkwÚdefaults)r Úspecr r r r
J s r
z\s*def\s*([_\w][_\w\d]*)\s*\(c @ sZ e Zd ZdZejƒ Zf Z Z Z Z
ZZd
dd„Z
dd„ Zddd „Zeddd„ƒZdS )Ú
FunctionMakerz´
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.
Nc C sÎ || _ |�rf|j| _| jdkr$d| _|j| _|j| _tj|ƒ�rft |ƒ}t
|di ƒ| _xdD ]} t| | t
|| ƒƒ q\W x&t
| jƒD ]\}
}t| d
|
|ƒ q‚W t| jƒ}t| jƒ}
| jrÚ|jd| j ƒ |
jd| j ƒ n| jrê|jdƒ x.| jD ]$} |jd| ƒ |
jd
| | f ƒ qòW | j�rB|jd| j ƒ |
jd| j ƒ dj|ƒ| _dj|
ƒ| _ |jjƒ | _|�rr|| _|d k �r‚|| _|�rŽ|| _|�rš|| _|�r¦|| _|�r²|| _t| dƒ�sÊtd| ƒ‚d S )NzÚ_lambda_Ú__annotations__r r r r Ú
kwonlyargsÚkwonlydefaultszarg%dÚ*z%s=Nonez%s=%sz**z, Ú signaturez%You are decorating a non function: %s)r r r r r r )ÚshortsignatureÚ__name__ÚnameÚ__doc__ÚdocÚ
__module__Úmoduler Ú
isfunctionr ÚgetattrÚannotationsÚsetattrÚ enumerater Úlistr Úappendr r Újoinr Ú__dict__ÚcopyÚdictr ÚhasattrÚ TypeError)ÚselfÚfuncr r r r" r$ ZfuncdictZargspecÚaÚiÚargZallargsZallshortargsr r r r a sZ
zFunctionMaker.__init__c K sš | j |_t| ddƒ|_t| di ƒ|_| j|_| jp4d|_t| ddƒ|_ yt
jdƒ}W n tk
rl d}Y nX |j
jddƒ}t| d|ƒ|_|jj|ƒ dS ) z2Update the signature of func with the data in selfr" Nr/ r' é ú?r r$ )r r r&