def bypass(result, func, *args, **kw):
 d = maybeDeferred(func, *args, **kw)
 d.addErrback(logError)
 d.addBoth((lambda ignored: result))
 return d

def bypass ( result , func , * args , ** kw ) : d = maybeDeferred ( func , * args , ** kw ) d . addErrback ( logError ) d . addBoth ( ( lambda ignored : result ) ) return d
perform the function .