def poll(self):
        timeout = self.timers.get_timeout()
        if timeout < 0:
            timeout = 5  # do not hang

        select_args = [
            tuple(self.sockets),
            tuple(self.sending),
            tuple(self.sockets),
            timeout,
        ]
        self.sending.clear()

        try:
            ready_lists = select.select(*select_args)
        except select.error as e:
            logger.error('SELECTSOCKET: Socket Error: "%s" %s', str(e), e.args)
            return

        for ready_socks, kind in zip(ready_lists, ('recv', 'send', 'err')):
            for sock in ready_socks:
                self.event.emit('select_%s' % kind, sock.fileno())
                self.event.emit((kind, sock.fileno()) % 'select_%s_%s',
                                sock.fileno())
dataset/ETHPy150Open SpockBotMC/SpockBot/spockbot/plugins/core/select.py/SelectPlugin.poll/swapped operands of `%`