def failure_to_exc_info(failure):
 if isinstance(failure, Failure):
  return (failure.type, failure.value, failure.getTracebackObject())

def failure_to_exc_info ( failure ) : if isinstance ( failure , Failure ) : return ( failure . type , failure . value , failure . getTracebackObject ( ) )
extract exc_info from failure instances .