File manager - Edit - /usr/local/CyberPanel/lib/python3.10/site-packages/tornado/__pycache__/iostream.cpython-310.pyc
Back
o �h�� � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlmZm Z ddlmZ ddlmZ ddlmZmZmZ ddlmZ ddlZddlmZmZmZmZmZmZmZm Z m!Z! dd l"m#Z# ej$r{dd 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. Contents: * `BaseIOStream`: Generic interface for reading and writing. * `IOStream`: Implementation of BaseIOStream using non-blocking sockets. * `SSLIOStream`: SSL-aware version of IOStream. * `PipeIOStream`: Pipe-based IOStream implementation. � 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. Note that the close callback is scheduled to run *after* other callbacks on the stream (to allow for buffered data to be processed), so you may see this error before you see the close callback. The ``real_error`` attribute contains the underlying error that caused the stream to close (if any). .. versionchanged:: 4.3 Added the ``real_error`` attribute. N� real_error�returnc s t � �d� || _d S )NzStream is closed)�super�__init__r )�selfr �� __class__� �F/usr/local/CyberPanel/lib/python3.10/site-packages/tornado/iostream.pyr! b s zStreamClosedError.__init__�N)�__name__� __module__�__qualname__�__doc__r � BaseExceptionr! � __classcell__r% r% r# r&