def excInfoOrFailureToExcInfo(err):
    if isinstance(err, Failure):
        # Unwrap the Failure into a exc_info tuple.
        err = (err.type, err.value, err.getTracebackObject())
    return err
Coerce a Failure to an _exc_info, if err is a Failure.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/trial/util.py/excInfoOrFailureToExcInfo