twisted.python.util._replaceIf(condition, alternative)
function documentationtwisted.python.util
View Source
If condition
, replace this function with alternative
.
Parameters | condition | A bool which says whether this should be replaced. |
alternative | An alternative function that will be swapped in instead of the original, if condition is truthy. | |
Returns | A decorator. |
Function | decorator | Undocumented |