iostream.pyc
1 o 2 ��c 3 � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl 4 Z 5 ddlmZm Z ddlmZ ddlmZ ddlmZmZmZ ddlmZ ddlZddlmZmZmZmZmZmZmZm Z m!Z! dd l"m#Z# ej$r{dd 6 lm%Z%m&Z&m'Z' e ddd �Z(ej)ej*ej+ej,fZ-e.ed�r�e-ej/ej0ej1f7 Z-e j2dkr�e-ej3f7 Z-e j2�4d�Z5G dd� de6�Z7G dd� de8�Z9G dd� de8�Z:G dd� de;�Z<G dd� de;�Z=G dd� de=�Z>G dd� de>�Z?G dd� de=�Z@d efd!d"�ZAdS )#aB Utility classes to write to and read from non-blocking files and sockets. 7 8 Contents: 9 10 * `BaseIOStream`: Generic interface for reading and writing. 11 * `IOStream`: Implementation of BaseIOStream using non-blocking sockets. 12 * `SSLIOStream`: SSL-aware version of IOStream. 13 * `PipeIOStream`: Pipe-based IOStream implementation. 14 � N)�Future�"future_set_result_unless_cancelled)�ioloop)�gen_log)�ssl_wrap_socket�_client_ssl_defaults�_server_ssl_defaults)�errno_from_exception) �Union�Optional� Awaitable�Callable�Pattern�Any�Dict�TypeVar�Tuple)� TracebackType)�Deque�List�Type� _IOStreamType�IOStream)�bound� WSAECONNRESET�darwin�winc s0 e Zd ZdZddee ddf� fdd� Z� ZS )�StreamClosedErrora� Exception raised by `IOStream` methods when the stream is closed. 15 16 Note that the close callback is scheduled to run *after* other 17 callbacks on the stream (to allow for buffered data to be processed), 18 so you may see this error before you see the close callback. 19 20 The ``real_error`` attribute contains the underlying error that caused 21 the stream to close (if any). 22 23 .. versionchanged:: 4.3 24 Added the ``real_error`` attribute. 25 N� 26 real_error�returnc s t � �d� || _d S )NzStream is closed)�super�__init__r )�selfr �� __class__� ��C:\Users\Jacks.GUTTSPC\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\tornado\iostream.pyr! b s 27 zStreamClosedError.__init__�N)�__name__� 28 __module__�__qualname__�__doc__r � BaseExceptionr! � __classcell__r% r% r# r&