File: //proc/1233/root/usr/lib/python3/dist-packages/twisted/internet/__pycache__/default.cpython-38.pyc
U
�be � @ s* d Z dgZddlmZ dd� Zee�ZdS )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>zddlm} W ql tk
r: ddlm} Y qlX n.| �� dkr`| �� s`ddlm} nddlm} W n tk
r� ddlm} Y nX |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)ZisLinuxZtwisted.internet.epollreactorr �ImportErrorZtwisted.internet.pollreactorZgetTypeZisMacOSXZtwisted.internet.selectreactor)r r � r �:/usr/lib/python3/dist-packages/twisted/internet/default.py�_getInstallFunction s r N)�__doc__�__all__Ztwisted.python.runtimer r r r r r r �<module> s %