def defers(func):
 @wraps(func)
 def wrapped(*a, **kw):
  return defer.maybeDeferred(func, *a, **kw)
 return wrapped

def defers ( func ) : @ wraps ( func ) def wrapped ( * a , ** kw ) : return defer . maybeDeferred ( func , * a , ** kw ) return wrapped
decorator to make sure a function always returns a deferred .