

def __init__(self):
    if hasattr(select, 'epoll'):
        self._impl = select.epoll()
        model = 'epoll'
    elif hasattr(select, 'kqueue'):
        self._impl = KqueueLoop()
        model = 'kqueue'
    elif hasattr(select, 'select'):
        self._impl = SelectLoop()
        model = 'select'
    else:
        raise Exception('can not find any available functions in select package')
    self._fdmap = {
        
    }
    self._last_time = time.time()
    self._periodic_callbacks = []
    self._stopping = False
    logging.debug('using event model: %s', model)

dataset/ETHPy150Open ziggear/shadowsocks/shadowsocks/eventloop.py EventLoop.__init__/original