Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/tornado/__pycache__/iostream.cpython-39.pyc
Ðазад
a _�hg � @ sZ 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(zddl)m*Z* W n e+�y* dZ*Y n0 ej,ej-fZ.e/ed��rPe.ej0f7 Z.ej1ej2ej3ej4fZ5e/ed��r�e5ej6ej7ej8f7 Z5e j9dk�r�e5ej:f7 Z5ej;fZ<e/ed��r�e<ej=f7 Z<e j9�>d�Z?G dd� de@�ZAG dd� deB�ZCG dd� deB�ZDG dd� deE�ZFG dd� deE�ZGG dd� deG�ZHG dd � d eH�ZIG d!d"� d"eG�ZJed#�d$d%�ZKdS )&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)�_set_nonblocking�WSAEWOULDBLOCK� WSAECONNRESET�darwin�WSAEINPROGRESS�winc s* e Zd ZdZdedd�� 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 t| ��d� || _d S )NzStream is closed)�superr �__init__r! )�selfr! �� __class__� ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/tornado/iostream.pyr$ u s zStreamClosedError.__init__)N)�__name__� __module__�__qualname__�__doc__� BaseExceptionr$ � __classcell__r( r( r&