def remove(self, other):
        if self.purged_connections in other.peer:
            return False
        for idx, i in enumerate(self):
            if i.peer == other.peer:
                conn = self.pop(idx)
                self.purged_connections.append(conn.peer)
                return conn
        raise AttributeError("%s has no attribute %s" %
                    (type(self), repr(other)))
dataset/ETHPy150Open richo/groundstation/groundstation/peer_socket_pool.py/PeerSocketPool.remove/swapped operands of `in`