
sXPc           @`  sN   d  Z  d d l m Z m Z d g Z d d l m Z d   Z e e  Z d S(   s   
The most suitable default reactor for the current platform.

Depending on a specific application's needs, some other reactor may in
fact be better.
i    (   t   divisiont   absolute_importt   install(   t   platformc         C`  s   y |  j    rJ y d d l m } Wq t k
 rF d d l m } q XnB |  j   d k r| |  j   r| d d l m } n d d l m } Wn! t k
 r d d l m } n X| S(   s'  
    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.
    i    (   R   t   posix(   t   isLinuxt   twisted.internet.epollreactorR   t   ImportErrort   twisted.internet.pollreactort   getTypet   isMacOSXt   twisted.internet.selectreactor(   R   R   (    (    sJ   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/default.pyt   _getInstallFunction   s    N(	   t   __doc__t
   __future__R    R   t   __all__t   twisted.python.runtimeR   R   R   (    (    (    sJ   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/default.pyt   <module>
   s
   		%