def excInfoOrFailureToExcInfo(err):
 if isinstance(err, Failure):
  err = (err.type, err.value, err.getTracebackObject())
 return err

def excInfoOrFailureToExcInfo ( err ) : if isinstance ( err , Failure ) : err = ( err . type , err . value , err . getTracebackObject ( ) ) return err
coerce a failure to an _exc_info .