| Server IP : 217.160.0.135 / Your IP : 216.73.216.115 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/ipython_genutils/__pycache__/ |
Upload File : |
�
��XA � � � d Z ddlmZ ddlZddlZddlZ ddl m
Z
n!# e$ r ddl mZm
Z
G d� de� � Z
Y nw xY w G d� d e� � Z G d
� de
� � ZdS )zTemporaryDirectory class, copied from Python 3
This is copied from the stdlib and will be standard in Python 3.2 and onwards.
� )�print_functionN)�TemporaryDirectory)�mkdtemp�templatec � � e Zd ZdZdedfd�Zd� Zdd�Zd� Zd � Z e
ej � � Z
e
ej j � � Z e
ej j � � Z e
ej � � Z e
ej � � Zej Zej Zd
� ZdS )r aF Create and return a temporary directory. This has the same
behavior as mkdtemp but can be used as a context manager. For
example:
with TemporaryDirectory() as tmpdir:
...
Upon exiting the context, the directory and everthing contained
in it are removed.
� Nc �@ � t |||� � | _ d| _ d S �NF)r �name�_closed)�self�suffix�prefix�dirs �:/usr/lib/python3/dist-packages/ipython_genutils/tempdir.py�__init__zTemporaryDirectory.__init__# s � �����4�4�D�I� �D�L�L�L� c � � | j S �N)r �r
s r � __enter__zTemporaryDirectory.__enter__'