U
    P|je  ã                   @   s*   d 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.
Ú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.pollreactorÚgetTypeZisMacOSXZtwisted.internet.selectreactor)r   r   © r   ú</tmp/pip-unpacked-wheel-audpp6lv/twisted/internet/default.pyÚ_getInstallFunction   s    r	   N)Ú__doc__Ú__all__Ztwisted.python.runtimer   r	   r   r   r   r   r   Ú<module>   s   %