#NEWLINE# def _getFailure( self , error ) : #NEWLINE# #INDENT# '\n        Convert a C{sys.exc_info()}-style tuple to a L{Failure}, if necessary.\n        ' #NEWLINE# if isinstance ( error , tuple ) : #NEWLINE# #INDENT# return Failure ( error [ 1 ] , error [ 0 ] , error [ 2 ] ) #NEWLINE# #UNINDENT# return error