Your IP : 3.144.242.20
�
c��fc � �~ � d dl Z d dlZd dlmZ dZ G d� de� � Z ej � � Zd� Z d� Z
dad� Zd
d �Z
dS )� N)�wrapsTc � � e Zd Zd� Zd� ZdS )�_InterruptHandlerc �� � d| _ || _ t |t � � r@|t j k r
t j }n#|t j k rd� }nt d� � �|| _ d S )NFc � � d S �N� )�
unused_signum�unused_frames �7/opt/alt/python311/lib64/python3.11/unittest/signals.py�default_handlerz3_InterruptHandler.__init__.<locals>.default_handler s � ��D� zYexpected 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
s r �__init__z_InterruptHandler.__init__
s� � ���� /����o�s�+�+� 3��&�.�0�0�"(�"<��� �F�N�2�2�� � � � � !2� 3� 3� 3� /����r c � � t j t j � � }|| ur| � ||� � | j r| � ||� � d| _ t
� � � D ]}|� � � �d S )NT)r � getsignal�SIGINTr
r �_results�keys�stop)r �signum�frame�installed_handler�results r �__call__z_InterruptHandler.__call__ s� � �"�,�V�]�;�;���D�(�(�
� � ���/�/�/��;� 0�� � ���/�/�/�����m�m�o�o� � �F��K�K�M�M�M�M� � r N)�__name__�
__module__�__qualname__r r$ r r r r r s2 � � � � � �/� /� /�$� � � � r r c � � dt | <