def fail(result=None):
    d = Deferred()
    d.errback(result)
    return d
Return a L{Deferred} that has already had C{.errback(result)} called.
dataset/ETHPy150Open twisted/twisted/twisted/internet/defer.py/fail