#NEWLINE# def delay( delay = 2 , callback = None , retval = None ) : #NEWLINE# #INDENT# "\n    Delay the return of a value.\n\n    Args:\n      delay (int or float): The delay in seconds\n      callback (callable, optional): Will be called without arguments\n        or with `retval` after delay seconds.\n      retval (any, optional): Whis will be returned by this function\n        after a delay, or as input to callback.\n\n    Returns:\n        deferred (deferred): Will fire fire with callback after\n            `delay` seconds. Note that if `delay()` is used in the\n            commandhandler callback chain, the callback chain can be\n            defined directly in the command body and don't need to be\n            specified here.\n\n    " #NEWLINE# callb = ( callback or defer . Deferred ( ) . callback ) #NEWLINE# if ( retval is not None ) : #NEWLINE# #INDENT# return reactor . callLater ( delay , callb , retval ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return reactor . callLater ( delay , callb )