AlkantarClanX12
Current Path : /opt/alt/python37/lib64/python3.7/asyncio/__pycache__/ |
Current File : //opt/alt/python37/lib64/python3.7/asyncio/__pycache__/streams.cpython-37.pyc |
B � f` � @ s d Z ddlZeed�re d7 Z ddlmZ ddlmZ ddlmZ dd lmZ dd l m Z dZG dd � d e�Z G dd� de�Zd!ded�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�IncompleteReadError�LimitOverrunError� NZAF_UNIX)�open_unix_connection�start_unix_server� )� coroutines)�events)� protocols)�logger)�sleepi c s( e Zd ZdZ� fdd�Zdd� Z� ZS )r z� Incomplete read error. Attributes: - partial: read bytes string before the end of stream was reached - expected: total number of expected bytes (or None if unknown) c s, t � �t|�� d|�d�� || _|| _d S )Nz bytes read on a total of z expected bytes)�super�__init__�len�partial�expected)�selfr r )� __class__� �4/opt/alt/python37/lib64/python3.7/asyncio/streams.pyr s zIncompleteReadError.__init__c C s t | �| j| jffS )N)�typer r )r r r r � __reduce__# s zIncompleteReadError.__reduce__)�__name__� __module__�__qualname__�__doc__r r � __classcell__r r )r r r s r c s( e Zd ZdZ� fdd�Zdd� Z� ZS )r z�Reached the buffer limit while looking for a separator. Attributes: - consumed: total number of to be consumed bytes. c s t � �|� || _d S )N)r r �consumed)r �messager! )r r r r - s zLimitOverrunError.__init__c C s t | �| jd | jffS )Nr )r �argsr! )r r r r r 1 s zLimitOverrunError.__reduce__)r r r r r r r r r )r r r '