If condition, replace this function with alternative.

ParametersconditionA bool which says whether this should be replaced.
alternativeAn alternative function that will be swapped in instead of the original, if condition is truthy.
ReturnsA decorator.
Function decorator Undocumented
def decorator(func): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.