HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/twisted/application/__pycache__/reactors.cpython-38.pyc
U


W[y�@s�dZddlmZmZddlmZmZmZddlm	Z	m
Z
ddlmZGdd�de�Z
Gdd	�d	e�Zee	e
�Gd
d�de��Zdd
�Zdd�ZdS)zT
Plugin-based system for enumerating available reactors and installing one of
them.
�)�absolute_import�division)�	Interface�	Attribute�implementer)�IPlugin�
getPlugins)�namedAnyc@s(eZdZdZed�Zed�Zdd�ZdS)�IReactorInstallerzB
    Definition of a reactor which can probably be installed.
    zE
    A brief string giving the user-facing name of this reactor.
    zK
    A longer string giving a user-facing description of this reactor.
    cCsdS)z'
        Install this reactor.
        N�rrr�>/usr/lib/python3/dist-packages/twisted/application/reactors.py�installszIReactorInstaller.installN)�__name__�
__module__�__qualname__�__doc__r�	shortName�descriptionr
rrrrr
sr
c@seZdZdZdS)�
NoSuchReactorzT
    Raised when an attempt is made to install a reactor which cannot be found.
    N)rrrrrrrrr(src@s eZdZdZdd�Zdd�ZdS)�Reactorz|
    @ivar moduleName: The fully-qualified Python name of the module of which
    the install callable is an attribute.
    cCs||_||_||_dS�N)r�
moduleNamer)�selfrrrrrr�__init__5szReactor.__init__cCst|j���dSr)r	rr
)rrrrr
;szReactor.installN)rrrrrr
rrrrr/srcCstt�S)z=
    Return an iterator of L{IReactorInstaller} plugins.
    )rr
rrrr�getReactorTypes@srcCs>t�D]*}|j|kr|��ddlm}|Sqt|��dS)z�
    Install the reactor with the given C{shortName} attribute.

    @raise NoSuchReactor: If no reactor is found with a matching C{shortName}.

    @raise: anything that the specified reactor can raise when installed.
    r)�reactorN)rrr
Ztwisted.internetrr)rZ	installerrrrr�installReactorHs


rN)rZ
__future__rrZzope.interfacerrrZtwisted.pluginrrZtwisted.python.reflectr	r
�KeyErrorr�objectrrrrrrr�<module>s