%PDF- %PDF-
Direktori : /snap/core20/2379/lib/python3.8/__pycache__/ |
Current File : //snap/core20/2379/lib/python3.8/__pycache__/signal.cpython-38.pyc |
U k�]e� � @ s& d dl Z d dl T d dlmZ d dlmZ e� Ze� de dd� � e� de d d� � d ekrle� de dd� � d d� Zdd� Zee j �dd� �Z ee j�dd� �Zd ekr�ee j�dd � �Ze jje_dekr�ee j�dd� �Zdek�ree j�dd� �Ze je_dek�ree j�dd� �Z[[dS )� N)�*)�wraps)�IntEnum�Signalsc C s( | � � r| �d�r| �d� p&| �d�S )NZSIGZSIG_ZCTRL_)�isupper� startswith��name� r �/usr/lib/python3.8/signal.py�<lambda> s �r �Handlersc C s | dkS )N)�SIG_DFL�SIG_IGNr r r r r r � �pthread_sigmaskZSigmasksc C s | dkS )N)� SIG_BLOCK�SIG_UNBLOCK�SIG_SETMASKr r r r r r r c C s( z || �W S t k r" | Y S X dS )zsConvert a numeric value to an IntEnum member. If it's not a known member, return the numeric value itself. N)� ValueError)�valueZ enum_klassr r r �_int_to_enum s r c C s, z t | �W S ttfk r& | Y S X dS )zmConvert an IntEnum member to a numeric value. If it's not an IntEnum member return the value itself. N)�intr � TypeError)r r r r �_enum_to_int# s r c C s t �t| �t|��}t|t�S �N)�_signal�signalr r r �Z signalnumZhandlerr r r r - s r c C s t �| �}t|t�S r )r � getsignalr r r r r r r 3 s r c C s t �| |�}tdd� |D ��S )Nc s s | ]}t |t�V qd S r �r r ��.0�xr r r � <genexpr>= s z"pthread_sigmask.<locals>.<genexpr>)r r �set)Zhow�maskZsigs_setr r r r : s � sigpendingc C s dd� t �� D �S )Nc S s h | ]}t |t��qS r r r! r r r � <setcomp>D s zsigpending.<locals>.<setcomp>)r r'