0x1949 Team - FAZEMRX - MANAGER
Edit File: utility.cpython-310.pyc
o �b?4 � @ sX d Z ddlmZ ddlmZ G dd� d�ZG dd� d�ZG dd � d �ZG d d� d�ZdS ) z+ Event Dispatching and Callback utilities. � )�log)�xpathc @ s e Zd ZdZdd� Zdd� ZdS )�_MethodWrapperz3 Internal class for tracking method calls. c O s || _ || _|| _d S �N)�method�args�kwargs)�selfr r r � r �</usr/lib/python3/dist-packages/twisted/words/xish/utility.py�__init__ s z_MethodWrapper.__init__c O s2 | j | }| j�� }|�|� | j|i |�� d S r )r r �copy�updater )r r r �nargs�nkwargsr r r �__call__ s z_MethodWrapper.__call__N)�__name__� __module__�__qualname__�__doc__r r r r r r r s r c @ s8 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� ZdS ) �CallbackLista� Container for callbacks. Event queries are linked to lists of callables. When a matching event occurs, these callables are called in sequence. One-time callbacks are removed from the list after the first time the event was triggered. Arguments to callbacks are split spread across two sets. The first set, callback specific, is passed to C{addCallback} and is used for all subsequent event triggers. The second set is passed to C{callback} and is event specific. Positional arguments in the second set come after the positional arguments of the first set. Keyword arguments in the second set override those in the first set. @ivar callbacks: The registered callbacks as mapping from the callable to a tuple of a wrapper for that callable that keeps the callback specific arguments and a boolean that signifies if it is to be called only once. @type callbacks: C{dict} c C s i | _ d S r �� callbacks�r r r r r 6 s zCallbackList.__init__c O s2 || j vrt|g|�R i |��|f| j |<