Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/tornado/__pycache__/util.cpython-39.pyc
Ðазад
a _�h�B � @ sX d Z ddlZddlZddlmZ ddlZddlZddlZddlZddlm Z m Z mZmZm Z mZmZmZmZmZ ejr�ddlZddlmZ ddlmZ ddlZeZeZeZzddlmZ W n. e y� eg e!f d�d d �Z"e"� ZY n0 G dd� de#�Z$G d d� deee f �Z%G dd� de&�Z'ee d�dd�Z(d4e eee f eee f dd�dd�Z)dd� Z*e+e e, d�dd�Z-e.d�Z/ee ed�dd�Z0e�1d ej2�Z3eed!�d"d#�Z4G d$d%� d%e&�Z5G d&d'� d'e&�Z6d(d)� Z7eeed*�d+d,�Z8ej9�:d-��sej9�:d.�d/k�re8Z;n>zdd0l<m=Z; W n, e �yJ ej9�:d.�d1k�rB� e8Z;Y n0 d2d3� Z>dS )5a� Miscellaneous utility functions and classes. This module is used internally by Tornado. It is not necessarily expected that the functions and classes defined here will be useful to other applications, but they are documented here in case they are. The one public-facing part of this module is the `Configurable` class and its `~Configurable.configure` method, which becomes a part of the interface of its subclasses, including `.AsyncHTTPClient`, `.IOLoop`, and `.Resolver`. � N)�getfullargspec) �Any�Optional�Dict�Mapping�List�Tuple�Match�Callable�Type�Sequence)� TracebackType)�Union�� is_finalizing��returnc s, g � t �� fdd�� td�� fdd�} | S )Nc s � � d �S �N)�append� ��Lr �|/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/tornado/util.py�<lambda>7 � z-_get_emulated_is_finalizing.<locals>.<lambda>r c s � g kS r r r r r r r 9 s z2_get_emulated_is_finalizing.<locals>.is_finalizing)�atexit�register�boolr r r r �_get_emulated_is_finalizing5 s r c @ s e Zd ZdZdS )�TimeoutErrora Exception raised by `.with_timeout` and `.IOLoop.run_sync`. .. versionchanged:: 5.0: Unified ``tornado.gen.TimeoutError`` and ``tornado.ioloop.TimeoutError`` as ``tornado.util.TimeoutError``. Both former names remain as aliases. N)�__name__� __module__�__qualname__�__doc__r r r r r B s r c @ s2 e Zd ZdZeed�dd�Zeedd�dd�ZdS ) � ObjectDictzKMakes a dictionary behave like an object, with attribute-style access. ��namer c C s* z | | W S t y$ t|��Y n0 d S r )�KeyError�AttributeError)�selfr&