Server IP : 184.154.167.98 / Your IP : 18.119.106.49 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib64/python3.8/unittest/__pycache__/ |
Upload File : |
U e5dc � @ sb d dl Z d dlZd dlmZ dZG dd� de�Ze�� Zdd� Z dd � Z dad d� Zddd �Z dS )� N)�wrapsTc @ s e Zd Zdd� Zdd� ZdS )�_InterruptHandlerc C sN d| _ || _t|t�rD|tjkr(tj}n|tjkr<dd� }ntd��|| _ d S )NFc S s d S �N� )Z unused_signumZunused_framer r �(/usr/lib64/python3.8/unittest/signals.py�default_handler s z3_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 r r r �__init__ s z_InterruptHandler.__init__c C sR t �t j�}|| k r | �||� | jr2| �||� d| _t�� D ]}|�� q@d S )NT)r � getsignal�SIGINTr r �_results�keys�stop)r Zsignum�frameZinstalled_handler�resultr r r �__call__ s z_InterruptHandler.__call__N)�__name__� __module__�__qualname__r r r r r r r s r c C s dt | <