File: //lib64/python3.6/asyncio/__pycache__/streams.cpython-36.pyc
3
  \�_  �               @   sL  d Z dddddddgZdd	lZeed
�r6ejddg� d
dlmZ d
dlmZ d
dlmZ d
dlm	Z	 d
dlm
Z
 d
dlmZ d"Z
G dd� de�ZG dd� de�Ze
d#d	e
d�dd��Ze
d$d	e
d�dd��Zeed
��re
d%d	e
d�dd��Ze
d&d	e
d�dd��ZG dd� de	j�ZG dd� dee	j�ZG d d� d�ZG d!d� d�Zd	S )'zStream-related things.�StreamReader�StreamWriter�StreamReaderProtocol�open_connection�start_server�IncompleteReadError�LimitOverrunError�    NZAF_UNIX�open_unix_connection�start_unix_server�   )�
coroutines)�compat)�events)�	protocols)�	coroutine)�logger�   �   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 � jdt|�|f � || _|| _d S )Nz-%d bytes read on a total of %r expected bytes)�super�__init__�len�partial�expected)�selfr   r   )�	__class__� �'/usr/lib64/python3.6/asyncio/streams.pyr       s    zIncompleteReadError.__init__c             C   s   t | �| j| jffS )N)�typer   r   )r   r   r   r   �
__reduce__&