ok
Direktori : /opt/alt/python38/lib64/python3.8/asyncio/__pycache__/ |
Current File : //opt/alt/python38/lib64/python3.8/asyncio/__pycache__/unix_events.cpython-38.opt-2.pyc |
U .��cۿ � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl Z d dlZddlm Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ dZe jdkr�ed��dd� ZG dd� dej�ZG dd� dej�Z G dd� dej!ej"�Z#G dd� dej$�Z%G dd� d�Z&dd� Z'G dd � d e&�Z(G d!d"� d"e(�Z)G d#d$� d$e(�Z*G d%d&� d&e&�Z+G d'd(� d(e&�Z,G d)d*� d*ej-�Z.eZ/e.Z0dS )+� N� )�base_events)�base_subprocess)� constants)� coroutines)�events)� exceptions)�futures)�selector_events)�tasks)� transports)�logger)�SelectorEventLoop�AbstractChildWatcher�SafeChildWatcher�FastChildWatcher�MultiLoopChildWatcher�ThreadedChildWatcher�DefaultEventLoopPolicyZwin32z+Signals are not really supported on Windowsc C s d S �N� )�signum�framer r �8/opt/alt/python38/lib64/python3.8/asyncio/unix_events.py�_sighandler_noop* s r c s� e Zd Zd(� fdd� Z� fdd�Zdd� Zdd � Zd d� Zdd � Zdd� Z d)dd�Z d*dd�Zd+dd�Zdd� Z d,ddddd�dd�Zd-dddddd�dd�Zd d!� Zd"d#� Zd$d%� Zd&d'� Z� ZS ).�_UnixSelectorEventLoopNc s t � �|� i | _d S r )�super�__init__�_signal_handlers)�self�selector�� __class__r r r 5 s z_UnixSelectorEventLoop.__init__c sZ t � �� t�� s.t| j�D ]}| �|� qn(| jrVtjd| �d�t | d� | j� � d S )NzClosing the loop z@ on interpreter shutdown stage, skipping signal handlers removal��source)r �close�sys� is_finalizing�listr �remove_signal_handler�warnings�warn�ResourceWarning�clear�r �sigr! r r r% 9 s �z_UnixSelectorEventLoop.closec C s |D ]}|sq| � |� qd S r )�_handle_signal)r �datar r r r �_process_self_dataG s z)_UnixSelectorEventLoop._process_self_datac G sL t �|�st �|�rtd��| �|� | �� zt�| j� � � W n2 t tfk rt } ztt |���W 5 d }~X Y nX t�||| d �}|| j|<