U
    
W[–  ã                   @   s:   d Z ddlmZmZ dgZddlmZ dd„ ZeeƒZdS )z•
The most suitable default reactor for the current platform.

Depending on a specific application's needs, some other reactor may in
fact be better.
é    )ÚdivisionÚabsolute_importÚinstall)Úplatformc                 C   s”   zn|   ¡ r>zddlm} W ql tk
r:   ddlm} Y qlX n.|  ¡ dkr`|  ¡ s`ddlm} nddlm} W n  tk
rŽ   ddlm} Y nX |S )a'  
    Return a function to install the reactor most suited for the given platform.

    @param platform: The platform for which to select a reactor.
    @type platform: L{twisted.python.runtime.Platform}

    @return: A zero-argument callable which will install the selected
        reactor.
    r   )r   Úposix)ZisLinuxZtwisted.internet.epollreactorr   ÚImportErrorZtwisted.internet.pollreactorZgetTypeZisMacOSXZtwisted.internet.selectreactor)r   r   © r   ú:/usr/lib/python3/dist-packages/twisted/internet/default.pyÚ_getInstallFunction   s    r
   N)	Ú__doc__Z
__future__r   r   Ú__all__Ztwisted.python.runtimer   r
   r   r   r   r   r	   Ú<module>   s
   %