Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/tornado/__pycache__/http1connection.cpython-39.pyc
Ðазад
a _�h�� � @ s d Z ddlZddlZddlZddlZddlmZmZmZ ddl m Z mZ ddlm Z ddlmZ ddlmZ ddlmZmZ dd lmZ dd lmZmZmZmZmZmZmZ G dd� de�ZG d d� de�Z G dd� de�Z!G dd� dej"�Z#G dd� dej$�Z%G dd� de�Z&dS )zFClient and server implementations of HTTP/1.x. .. versionadded:: 4.0 � N)�Future�future_add_done_callback�"future_set_result_unless_cancelled)� native_str�utf8)�gen)�httputil)�iostream)�gen_log�app_log)�GzipDecompressor)�cast�Optional�Type� Awaitable�Callable�Union�Tuplec @ s e Zd Zdd�dd�ZdS )�_QuietExceptionN��returnc C s d S �N� ��selfr r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/tornado/http1connection.py�__init__+ s z_QuietException.__init__)�__name__� __module__�__qualname__r r r r r r * s r c @ sJ e Zd ZdZejdd�dd�Zdd�dd�Zd ee e jdd �dd�ZdS ) �_ExceptionLoggingContextz�Used with the ``with`` statement when calling delegate methods to log any exceptions with the given logger. Any exceptions caught are converted to _QuietException N)�loggerr c C s || _ d S r )r! )r r! r r r r 5 s z!_ExceptionLoggingContext.__init__r c C s d S r r r r r r � __enter__8 s z"_ExceptionLoggingContext.__enter__zOptional[Type[BaseException]])�typ�value�tbr c C s2 |d ur.|d usJ �| j jd|||fd� t�d S )N�Uncaught exception��exc_info)r! �errorr )r r# r$ r% r r r �__exit__; s z!_ExceptionLoggingContext.__exit__) r r r �__doc__�logging�Loggerr r"