ok

Mini Shell

Direktori : /usr/lib64/python3.6/unittest/__pycache__/
Upload File :
Current File : //usr/lib64/python3.6/unittest/__pycache__/signals.cpython-36.opt-1.pyc

3


 \c	�@sbddlZddlZddlmZdZGdd�de�Zej�Zdd�Z	dd	�Z
dad
d�Zddd
�Z
dS)�N)�wrapsTc@seZdZdd�Zdd�ZdS)�_InterruptHandlercCsNd|_||_t|t�rD|tjkr(tj}n|tjkr<dd�}ntd��||_	dS)NFcSsdS)N�)Z
unused_signumZunused_framerr�/usr/lib64/python3.6/signals.py�default_handlersz3_InterruptHandler.__init__.<locals>.default_handlerzYexpected SIGINT signal handler to be signal.SIG_IGN, signal.SIG_DFL, or a callable object)
�called�original_handler�
isinstance�int�signal�SIG_DFL�default_int_handler�SIG_IGN�	TypeErrorr)�selfrrrr�__init__
s



z_InterruptHandler.__init__cCsVtjtj�}||k	r |j||�|jr2|j||�d|_xtj�D]}|j�qBWdS)NT)r�	getsignal�SIGINTrr�_results�keys�stop)rZsignum�frameZinstalled_handler�resultrrr�__call__sz_InterruptHandler.__call__N)�__name__�
__module__�__qualname__rrrrrrr	srcCsdt|<dS)N�)r)rrrr�registerResult*srcCsttj|d��S)N)�boolr�pop)rrrr�removeResult-sr!cCs.tdkr*tjtj�}t|�atjtjt�dS)N)�_interrupt_handlerrrrr)rrrr�installHandler1sr#cs<�dk	r t���fdd��}|Stdk	r8tjtjtj�dS)Ncs2tjtj�}t�z
�||�Stjtj|�XdS)N)rrr�
removeHandler)�args�kwargs�initial)�methodrr�inner;s

zremoveHandler.<locals>.inner)rr"rrr)r(r)r)r(rr$9s
r$)N)r�weakref�	functoolsrZ
__unittest�objectr�WeakKeyDictionaryrrr!r"r#r$rrrr�<module>s 

Zerion Mini Shell 1.0