a
    Lb	                  
   @   s   d Z ddlZddlZddlmZ z*ddlmZmZ da	da
edddZW nR ey   eejef Zeedf ZdeeeeedddZedddZY n0 edddZdS )ze
certifi.py
~~~~~~~~~~

This module returns the installation location of cacert.pem or its contents.
    N)Union)path	read_text)returnc                   C   s"   t d u rtddatt a t S )Ncertifi
cacert.pem)_CACERT_PATHget_path_CACERT_CTXstr	__enter__ r   r   I/var/www/html/diaryflask/venv/lib/python3.9/site-packages/certifi/core.pywhere   s    
r   zos.PathLikeutf-8strict)packageresourceencodingerrorsr   c                 C   s:   t t |d}| W  d    S 1 s,0    Y  d S )Nr   )openr   read)r   r   r   r   datar   r   r   r   2   s    r   c                  C   s   t jt} t j| dS )Nr   )osr   dirname__file__join)fr   r   r   r   =   s    c                   C   s   t ddddS )Nr   r   asciir   )r   r   r   r   r   contentsC   s    r    )r   r   )__doc__r   typestypingr   importlib.resourcesr   r	   r   r
   r   r   r   ImportError
ModuleTypePackageResourcer    r   r   r   r   <module>   s,   	  