U
    Acje  ć                   @   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-nrvc_22y/twisted/internet/default.pyŚ_getInstallFunction   s    r	   N)Ś__doc__Ś__all__Ztwisted.python.runtimer   r	   r   r   r   r   r   Ś<module>   s   %