

def _control(self, fd, mode, flags):
    events = []
    if (mode & POLL_IN):
        events.append(select.kevent(events, select.KQ_FILTER_READ, flags))
    if (mode & POLL_OUT):
        events.append(select.kevent(fd, select.KQ_FILTER_WRITE, flags))
    for e in events:
        self._kqueue.control([e], 0)

dataset/ETHPy150Open ziggear/shadowsocks/shadowsocks/eventloop.py KqueueLoop._control/VarMisuse@38/45 `fd`->`events`