%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/application/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/application/__pycache__/reactors.cpython-312.pyc

�

Ϫ�f!	����dZddlmZmZddlmZmZmZddlm	Z	ddl
mZmZddl
mZGd�de�ZGd	�d
e�Zeee�Gd�d��Zd
eefd�Zded
e	fd�Zy)zT
Plugin-based system for enumerating available reactors and installing one of
them.
�)�Iterable�cast)�	Attribute�	Interface�implementer)�IReactorCore)�IPlugin�
getPlugins)�namedAnyc�8�eZdZdZed�Zed�Zdd�Zy)�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.
    Nc��y)z'
        Install this reactor.
        N�r��>/usr/lib/python3/dist-packages/twisted/application/reactors.py�installzIReactorInstaller.install#s�r��returnN)�__name__�
__module__�__qualname__�__doc__r�	shortName�descriptionrrrrr
r
s.����	��I��	��K�rr
c��eZdZdZy)�
NoSuchReactorzT
    Raised when an attempt is made to install a reactor which cannot be found.
    N)rrrrrrrrr,s��rrc�,�eZdZdZdededefd�Zdd�Zy)	�Reactorz|
    @ivar moduleName: The fully-qualified Python name of the module of which
    the install callable is an attribute.
    r�
moduleNamerc�.�||_||_||_y�N)rrr)�selfrrrs    r�__init__zReactor.__init__9s��"���$���&��rNc�J�t|j�j�yr!)rrr)r"s rrzReactor.install>s������!�)�)�+rr)rrrr�strr#rrrrrr2s&���
'�#�'�3�'�S�'�
,rrrc� �tt�S)z=
    Return an iterator of L{IReactorInstaller} plugins.
    )r
r
rrr�getReactorTypesr'Bs���'�(�(rrc��t�D]9}|j|k(s�|j�ddlm}tt|�cSt|��)z�
    Install the reactor with the given C{shortName} attribute.

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

    @raise Exception: Anything that the specified reactor can raise when installed.
    r)�reactor)r'rr�twisted.internetr)rrr)r�	installerr)s   r�installReactorr,IsM��%�&�/�	����)�+�����0���g�.�.�/��	�
"�"rN)r�typingrr�zope.interfacerrr�twisted.internet.interfacesr�twisted.pluginr	r
�twisted.python.reflectrr
�KeyErrorrrr'r%r,rrr�<module>r3s|��
�"�<�<�4�.�+��	��4�H��
�W�'�(�,�,�)�,�)��"3�4�)�#�c�#�l�#r

Zerion Mini Shell 1.0