Your IP : 18.116.28.79
U
�QabF � @ sP g Z eZzd dlmZ W n2 ek
rJ d dlZd dlZG dd� d�ZY nX dS )� )�TemporaryDirectoryNc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) r z�
Very simple temporary directory context manager.
Will try to delete afterward, but will also ignore OS and similar
errors on deletion.
c K s d | _ tjf |�| _ d S �N)�name�tempfileZmkdtemp)�self�kwargs� r �9/usr/lib/python3.8/site-packages/setuptools/py31compat.py�__init__ s zTemporaryDirectory.__init__c C s | j S r )r )r r r r � __enter__ s zTemporaryDirectory.__enter__c C s2 zt �| jd� W n tk
r& Y nX d | _d S )NT)�shutilZrmtreer �OSError)r �exctypeZexcvalueZexctracer r r �__exit__ s
zTemporaryDirectory.__exit__N)�__name__�
__module__�__qualname__�__doc__r
r r r r r r r
s r )�__all__�typeZ
__metaclass__r r �ImportErrorr r r r r �<module> s