

def register(self, fd, mode):
    if (mode & POLL_IN):
        self._r_list.add(fd)
    if (fd & POLL_OUT):
        self._w_list.add(fd)
    if (mode & POLL_ERR):
        self._x_list.add(fd)

dataset/ETHPy150Open ziggear/shadowsocks/shadowsocks/eventloop.py SelectLoop.register/VarMisuse@35/41 `mode`->`fd`