'Poll the poller for new events.'

def doPoll(self, timeout):

    if (timeout is None):
        timeout = (-1)
    try:
        l = self._poller.poll(timeout, len(self._selectables))
    except IOError as err:
        if (err.errno == errno.EINTR):
            return
        raise
    _drdw = self._doReadOrWrite
    for (fd, event) in l:
        try:
            selectable = self._selectables[fd]
        except KeyError:
            pass
        else:
            log.callWithLogger(selectable, _drdw, selectable, fd, event)
