#NEWLINE# def __init__( self , deferred ) : #NEWLINE# #INDENT# '\n        @param deferred: L{twisted.internet.defer.Deferred} to wrap.\n        ' #NEWLINE# self . result = deferred #NEWLINE# self . _action = currentAction ( ) #NEWLINE# self . _finishAdded = False #NEWLINE# if ( self . _action is None ) : #NEWLINE# #INDENT# raise RuntimeError ( 'DeferredContext() should only be created in the context of an eliot.Action.' )