OpenQuizz
Une application de gestion des contenus pédagogiques
pip._vendor.tenacity.compat Namespace Reference

Functions

def get_exc_info_from_future (future)
 

Detailed Description

Utilities for providing backward compatibility.

Function Documentation

◆ get_exc_info_from_future()

def pip._vendor.tenacity.compat.get_exc_info_from_future (   future)
Get an exc_info value from a Future.

Given a a Future instance, retrieve an exc_info value suitable for passing
in as the exc_info parameter to logging.Logger.log() and related methods.

On Python 2, this will be a (type, value, traceback) triple.
On Python 3, this will be an exception instance (with embedded traceback).

If there was no exception, None is returned on both versions of Python.