관리-도구
편집 파일: selector_events.cpython-37.opt-2.pyc
B YI~d$� � @ s d Z ddlZddlZddlZddlZddlZddlZddlZyddlZW n e k r` dZY nX ddl mZ ddl mZ ddl m Z ddl mZ ddl mZ dd l mZ dd l mZ ddlmZ dd � Zdd� ZG dd� dej�ZG dd� dejej�ZG dd� de�ZG dd� de�ZdS ))�BaseSelectorEventLoop� N� )�base_events)� constants)�events)�futures)� protocols)�sslproto)� transports)�loggerc C s6 y| � |�}W n tk r" dS X t|j|@ �S d S )NF)�get_key�KeyError�boolr )�selector�fdZevent�key� r �</opt/alt/python37/lib64/python3.7/asyncio/selector_events.py�_test_selector_event s r c C s t d k rt| t j�rtd��d S )Nz"Socket cannot be of type SSLSocket)�ssl� isinstanceZ SSLSocket� TypeError)�sockr r r �_check_ssl_socket* s r c s� e Zd ZdP� fdd� ZdQddd�dd�ZdRddddejd�d d �ZdSdd�Z� fd d�Z dd� Z dd� Zdd� Zdd� Z dd� Zdddejfdd�Zdddejfdd�Zddejfdd�Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d+� Zd,d-� Zd.d/� Zd0d1� Zd2d3� Zd4d5� Zd6d7� Zd8d9� Zd:d;� Zd<d=� Z d>d?� Z!d@dA� Z"dBdC� Z#dDdE� Z$dFdG� Z%dHdI� Z&dJdK� Z'dLdM� Z(dNdO� Z)� Z*S )Tr Nc sF t � �� |d krt�� }t�d|jj� || _| � � t �� | _d S )NzUsing selector: %s) �super�__init__� selectorsZDefaultSelectorr �debug� __class__�__name__� _selector�_make_self_pipe�weakrefZWeakValueDictionary�_transports)�selfr )r r r r 5 s zBaseSelectorEventLoop.__init__)�extra�serverc C s t | |||||�S )N)�_SelectorSocketTransport)r$ r �protocol�waiterr% r&