U
    žV_ÿ  ã                   @   sd   d Z ddlZz$ddlmZmZ dadadd„ ZW n& e	k
rV   ddd„Zd	d„ ZY nX d
d„ Z
dS )ze
certifi.py
~~~~~~~~~~

This module returns the installation location of cacert.pem or its contents.
é    N)ÚpathÚ	read_textc                   C   s"   t d krtddƒatt ¡ ƒa t S )NÚcertifiú
cacert.pem)Ú_CACERT_PATHÚget_pathÚ_CACERT_CTXÚstrÚ	__enter__© r   r   ú0/tmp/pip-unpacked-wheel-0b6o570_/certifi/core.pyÚwhere   s    
r   Úasciic              
   C   s0   t tƒ d|d��}| ¡ W  5 Q R £ S Q R X d S )NÚr©Úencoding)Úopenr   Úread)Ú_moduleÚ_pathr   Údatar   r   r   r   /   s    r   c                  C   s   t j t¡} t j | d¡S )Nr   )Úosr   ÚdirnameÚ__file__Újoin)Úfr   r   r   r   5   s    c                   C   s   t dddd�S )Nr   r   r   r   )r   r   r   r   r   Úcontents;   s    r   )r   )Ú__doc__r   Úimportlib.resourcesr   r   r   r   r   r   ÚImportErrorr   r   r   r   r   Ú<module>   s   
