AlkantarClanX12
Current Path : /proc/self/root/usr/lib64/python3.8/asyncio/__pycache__/ |
Current File : //proc/self/root/usr/lib64/python3.8/asyncio/__pycache__/streams.cpython-38.pyc |
U e5d h � @ s& d Z ddlZddlZddlZddlZeed�r6e d7 Z ddlmZ ddlmZ ddlm Z dd lm Z dd lmZ ddlm Z ddlmZ d Zdded�dd�Zd ded�dd�Zeed�r�d!ded�dd�Zd"ded�dd�ZG dd� dej�ZG dd� deej�ZG dd� d�ZG dd� d�ZdS )#)�StreamReader�StreamWriter�StreamReaderProtocol�open_connection�start_server� NZAF_UNIX)�open_unix_connection�start_unix_server� )� coroutines)�events)� exceptions)�format_helpers)� protocols)�logger)�sleepi )�loop�limitc � st |dkrt �� }ntjdtdd� t||d�}t||d�� |j� fdd�| |f|�I dH \}}t|� ||�}||fS ) a� A wrapper for create_connection() returning a (reader, writer) pair. The reader returned is a StreamReader instance; the writer is a StreamWriter instance. The arguments are all the usual arguments to create_connection() except protocol_factory; most common are positional host and port, with various optional keyword arguments following. Additional optional keyword arguments are loop (to set the event loop instance to use) and limit (to set the buffer limit passed to the StreamReader). (If you want to customize the StreamReader and/or StreamReaderProtocol classes, just copy the code -- there's really nothing special here except some convenience.) N�[The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.� �� stacklevel�r r �r c s � S �N� r ��protocolr �'/usr/lib64/python3.8/asyncio/streams.py�<lambda>5 � z!open_connection.<locals>.<lambda>) r �get_event_loop�warnings�warn�DeprecationWarningr r Zcreate_connectionr ) �host�portr r �kwds�reader� transport�_�writerr r r r s"