HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //proc/thread-self/root/lib/python3.10/unittest/__pycache__/signals.cpython-310.pyc
o

p̦ic	�@sbddlZddlZddlmZdZGdd�de�Ze��Zdd�Z	dd	�Z
dad
d�Zddd
�Z
dS)�N)�wrapsTc@seZdZdd�Zdd�ZdS)�_InterruptHandlercCsNd|_||_t|t�r"|tjkrtj}n|tjkrdd�}ntd��||_	dS)NFcSsdS�N�)�
unused_signum�unused_framerr�'/usr/lib/python3.10/unittest/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	)�selfr	rrr�__init__
s




z_InterruptHandler.__init__cCsRt�tj�}||ur|�||�|jr|�||�d|_t��D]}|��q dS)NT)r�	getsignal�SIGINTr	r
�_results�keys�stop)r�signum�frame�installed_handler�resultrrr�__call__s
�z_InterruptHandler.__call__N)�__name__�
__module__�__qualname__rrrrrrr	srcCsdt|<dS)N�)r�rrrr�registerResult*sr$cCstt�|d��Sr)�boolr�popr#rrr�removeResult-sr'cCs2tdurt�tj�}t|�at�tjt�dSdSr)�_interrupt_handlerrrrr)r	rrr�installHandler1s
�r)cs@�durt���fdd��}|Stdurt�tjtj�dSdS)Nc
sBt�tj�}t�z�|i|��Wt�tj|�St�tj|�wr)rrr�
removeHandler)�args�kwargs�initial��methodrr�inner;s
 zremoveHandler.<locals>.inner)rr(rrr)r/r0rr.rr*9s�r*r)r�weakref�	functoolsr�
__unittest�objectr�WeakKeyDictionaryrr$r'r(r)r*rrrr�<module>s