← Back
Editing: router.cpython-312.opt-1.pyc
� 2�i�% � �� � d dl Z d dlZd dlZd dlmZmZmZ ddlmZm Z ddl mZmZm Z ej e� Z G d� d� Z G d� d � Z G d � de� Z G d� d � Z G d� de � Zy)� N)�Dict�List�Optional� )� JsonObject� JsonValue)�CockpitProblem�CockpitProtocolError�CockpitProtocolServerc �$ � e Zd ZdZd� Zd� Zdd�Zy)�ExecutionQueueaw Temporarily delay calls to a given set of class methods. Functions by replacing the named function at the instance __dict__ level, effectively providing an override for exactly one instance of `method`'s object. Queues the invocations. Run them later with .run(), which also reverses the redirection by deleting the named methods from the instance. c � � t j � | _ || _ | j D ] }| j |� � y �N)�collections�deque�queue�methods�_wrap)�selfr �methods �3/usr/lib/python3.12/site-packages/cockpit/router.py�__init__zExecutionQueue.__init__ s3 � � �&�&�(�� �����l�l�F��J�J�v�� #� c �f � �� t �j �j j �� fd�� y )Nc �>