File: //opt/alt/python311/lib/python3.11/site-packages/setuptools/__pycache__/py31compat.cpython-311.pyc
�
��;fF � �^ � g Z eZ d dlmZ dS # e$ r d dlZd dlZ G d� d� � ZY dS w xY w)� )�TemporaryDirectoryNc �$ � e Zd ZdZd� Zd� Zd� 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 �@ � d | _ t j di |��| _ d S )N� )�name�tempfile�mkdtemp)�self�kwargss �H/opt/alt/python311/lib/python3.11/site-packages/setuptools/py31compat.py�__init__zTemporaryDirectory.__init__ s% � ��D�I� �(�2�2�6�2�2�D�I�I�I� c � � | j S )N)r )r
s r � __enter__zTemporaryDirectory.__enter__ s
� ��9�r c �l � t j | j d� � n# t $ r Y nw xY wd | _ d S )NT)�shutil�rmtreer �OSError)r
�exctype�excvalue�exctraces r �__exit__zTemporaryDirectory.__exit__ sI � �
��
�d�i��.�.�.�.���
�
�
���
�����D�I�I�Is � �
*�*N)�__name__�
__module__�__qualname__�__doc__r
r r r r r r r
sK � � � � � � � � 3� 3� 3� � � � � � � � r r )�__all__�type�
__metaclass__r r �ImportErrorr r r r �<module>r! s� ��
���
��+�+�+�+�+�+�+�+��� � � ��M�M�M��O�O�O�� � � � � � � � � � � ���s � �,�,