def expire(self, now):
        """
        Remove all expired leases.

        :param datetime now: The current date/time.
        :return: The updated ``Leases`` representation.
        """
        updated = self
        for lease in self.values():
            if lease.expiration is not None and now < lease.expiration:
                updated = updated.release(lease.dataset_id, lease.node_id)
        return updated
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/_model.py/Leases.expire/swapped operands of `<`