U
    +|jã  ã                   @   s   d Z ddlmZ dd„ ZdS )z/Utilities for providing backward compatibility.é    )Úsixc                 C   s8   t jr|  ¡ S |  ¡ \}}|dkr&dS t|ƒ||fS dS )aª  
    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.
    N)r   ÚPY3Ú	exceptionÚexception_infoÚtype)ÚfutureÚexÚtb© r
   úcC:\Users\snmko\Desktop\web_content\django_cbt\venv\Lib\site-packages\pip/_vendor/tenacity/compat.pyÚget_exc_info_from_future   s    r   N)Ú__doc__Úpip._vendorr   r   r
   r
   r
   r   Ú<module>   s   