human
Complete this python program:
def _replaceIf(condition, alternative):
assistant
#Here is the Python program you requested.

    """If C{condition}, replace this function with C{alternative}.
    @param condition: A L{bool} which says whether this should be replaced.
    @param alternative: An alternative function that will be swapped in instead
    of the original, if C{condition} is truthy.
    @return: A decorator.
    """
    def decorator(func):
        if (condition is True):
            call = alternative
        elif (condition is False):
            call = func
        else:
            raise ValueError('condition    argument    to    _replaceIf    requires    a    bool,    not    {}'.format(repr(condition)))
        @wraps(func)
        def wrapped(*args, **kwargs):
            return call(*args, **kwargs)
        return wrapped
    return decorator