{%b d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dl m
Z
mZmZm
Z
mZ d dlmZ d dlmZ dd lmZ e
ee
e f Zerd dlZ G d
d Zdeegef fd
ZdS ) N)Path)compile)mkdtemp)UnionSequence
TYPE_CHECKINGTupleCallable)compare)wrap )rmtreec e Zd ZdZ e ZdZdZ d%dddddee e
df dee d ed
e fdZ
ed Zd&dZd'dZed'd Z d(dedededefdZd)dedefdZ d*dee dedededef
dZd ZdefdZd%dedeee f d
e fdZd%dee ee f d
e fdZeZd%ded
e
fd Zd%ded
dfd!Zd%ded
e d
eee f fd"Zd# Z d$ Z!dS )+
TempDirectoryad
A class representing a temporary directory on disk.
:param ignore: A sequence of strings containing regular expression
patterns that match filenames that should be
ignored by the :class:`TempDirectory` listing and
checking methods.
:param create: If `True`, the temporary directory will be created
as part of class instantiation.
:param path: If passed, this should be a string containing an
absolute path to use as the temporary directory. When
passed, :class:`TempDirectory` will not create a new
directory to use.
:param encoding: A default encoding to use for :meth:`read` and
:meth:`write` operations when the ``encoding`` parameter
is not passed to those methods.
FN )ignorecreateencodingpathz
py.path.localr r r c g | _ |D ])}| j t | *|rt | nd | _ || _ t
| | _ |s||| d S d S d S N) r appendr strr r booldont_remover )selfr r r r regexs l/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/testfixtures/tempdirectory.py__init__zTempDirectory.__init__3 s / /EKwu~~....!%/CIII4
:: dlv~KKMMMMM #l~~ c | j r;t j dd d | j D z d S d S )Nz6TempDirectory instances not cleaned up by shutdown:
%s
c 3 $ K | ]}|j V d S r )r ).0is r