@handler("close")
    def close(self, sock=None):
        is_closed = sock is None

        if sock is None:
            socks = [self._sock]
            socks.extend(self._clients[:])
        else:
            socks = [sock]

        for sock in socks:
            if not self._buffers[sock]:
                self._close(sock)
            elif self._closeq not in sock:
                self._closeq.append(sock)

        if is_closed:
            self.fire(closed())
dataset/ETHPy150Open circuits/circuits/circuits/net/sockets.py/Server.close/swapped operands of `not in`