← Back
Editing: default.cpython-38.pyc
U W[� � @ s: d Z ddlmZmZ 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. � )�division�absolute_import�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__Z __future__r r �__all__Ztwisted.python.runtimer r r r r r r �<module> s %
Save File
Cancel