Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/zmq/eventloop/__pycache__/_deprecated.cpython-39.pyc
Ðазад
a a�h� � @ s d Z ddlmZmZmZ ddlZddlZddlZddlm Z m Z mZmZm Z mZ zddlZejZW n eefy| dZY n0 ddlmZmZ ddlmZ G d d � d e�ZG dd� de�ZG d d� de�Zde kr�dk r�n nddd�Zee_eZdd� Z dS )uX tornado IOLoop API with zmq compatibility If you have tornado ≥ 3.0, this is a subclass of tornado's IOLoop, otherwise we ship a minimal subset of tornado in zmq.eventloop.minitornado. The minimal shipped version of tornado's IOLoop does not include support for concurrent futures - this will only be available if you have tornado ≥ 3.0. � )�absolute_import�division�with_statementN)�Poller�POLLIN�POLLOUT�POLLERR�ZMQError�ETERM� � )� PollIOLoop�PeriodicCallback)�gen_logc s2 e Zd ZdZd � fdd� Zdd� Zdd� Z� ZS ) �DelayedCallbackz�Schedules the given callback to be called once. The callback is called once, after callback_time milliseconds. `start` must be called after the DelayedCallback is created. The timeout is calculated from when `start` is called. Nc s. t �dt� t|d�}tt| ��|||� d S )NzDDelayedCallback is deprecated. Use loop.add_timeout instead.g����MbP?)�warnings�warn�DeprecationWarning�max�superr �__init__)�self�callback� callback_time�io_loop�� __class__r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/zmq/eventloop/_deprecated.pyr . s � zDelayedCallback.__init__c C s6 d| _ d| _t�� | jd | _| j�| j| j� dS )zStarts the timer.Tg @�@N)�_runningZ _firstrun�timer Z _next_timeoutr Zadd_timeout�_run�r r r r �start5 s zDelayedCallback.startc C sB | j s d S d| _ z| �� W n ty< tjddd� Y n0 d S )NFzError in delayed callbackT)�exc_info)r r � Exceptionr �errorr! r r r r <