U
    
W[  ă                   @   sJ   d Z ddlmZmZ ddlmZ e dˇZe dˇZ	dd„ Z
dd	dgZd
S )z©
Backwards compatibility, and utility functions.

In general, this module should not be used, other than by reactor authors
who need to use the 'installReactor' method.
é    )ÚdivisionÚabsolute_import)ÚerrorzConnection donezConnection lostc                 C   s:   ddl }ddl}d|jkr$t dˇ‚| |j_| |jd< dS )zt
    Install reactor C{reactor}.

    @param reactor: An object that provides one or more IReactor* interfaces.
    r   Nztwisted.internet.reactorzreactor already installed)Útwisted.internetÚsysÚmodulesr   ZReactorAlreadyInstalledErrorZinternetÚreactor)r   Ztwistedr   © r	   ú7/usr/lib/python3/dist-packages/twisted/internet/main.pyÚinstallReactor   s    

r   ÚCONNECTION_LOSTÚCONNECTION_DONEN)Ú__doc__Z
__future__r   r   r   r   ZConnectionDoner   ZConnectionLostr   r   Ú__all__r	   r	   r	   r
   Ú<module>   s   

