§
åôó§ñäjã óÌ — d Z g d¢ZddlZddlZddlZddlZ ddl
ZddlZ
ddlZddlmZ ddlZddlZddlZddlZej Ze j e j z e j z Z e e d¦ « r
ee j! z ZeZ" e e d¦ « r
e"e j# z Z" e e d¦ « re j$ Z$ndZ$d Z% e¦ « Z&d
„ Z'd„ Z(d„ Z) G d
„ d¦ « Z*d„ Z+d„ Z,da-d„ Z.d„ Z/d„ Z0d„ Z1d„ Z2d„ Z3da4d„ Z5d„ Z6d„ Z7d0d„Z8d1d„Z9de%dfd„Z: G d„ d ¦ « Z; G d!„ d"¦ « Z< d2dd&œd'„Z=e j> d(k sej? d)k re=Z@n e e d*¦ « aA d3dd&œd+„Z@ G d,„ d-ejB ¦ « ZC G d.„ d/¦ « ZDdS )4a� Temporary files.
This module provides generic, low- and high-level interfaces for
creating temporary files and directories. All of the interfaces
provided by this module can be used without fear of race conditions
except for 'mktemp'. 'mktemp' is subject to race conditions and
should not be used; it is provided for backward compatibility only.
The default path names are returned as str. If you supply bytes as
input, all return values will be in bytes. Ex:
>>> tempfile.mkstemp()
(4, '/tmp/tmptpu9nin8')
>>> tempfile.mkdtemp(suffix=b'')
b'/tmp/tmppbi8f0hy'
This module also provides some data items to the user:
TMP_MAX - maximum number of names that will be tried before
giving up.
tempdir - If this is set to a string before the first use of
any routine from this module, it will be considered as
another candidate location to store temporary files.
)
ÚNamedTemporaryFileÚ
TemporaryFileÚSpooledTemporaryFileÚTemporaryDirectoryÚmkstempÚmkdtempÚmktempÚTMP_MAXÚ
gettempprefixÚtempdirÚ
gettempdirÚgettempprefixbÚgettempdirbé N)ÚRandomÚ
O_NOFOLLOWÚO_BINARYr i' Útmpc óR — t j | ¦ « dS # t $ r Y dS w xY w)NTF)Ú_osÚlstatÚOSError)Úfns ú5/opt/alt/python-internal/lib64/python3.11/tempfile.pyÚ_existsr M s? € ðÝŒ �"‰
Œ
ˆ
ð ˆtøõ ð ð ð Øˆuˆuðøøøs ‚ ˜
&¥&c ó€ — d}| D ]‡}|€Œt |t j ¦ « rt j |¦ « }t |t ¦ « r |t
u rt
d¦ « ‚t }Œh|t u rt
d¦ « ‚t
}Œˆ|€/t �t t t
¦ « rt
S t S |S )zBLook at the type of all args and divine their implied return type.Nz1Can't mix bytes and non-bytes in path components.)Ú
isinstancer ÚPathLikeÚfspathÚbytesÚstrÚ TypeErrorr )ÚargsÚreturn_typeÚargs r Ú_infer_return_typer% V sÎ € à€KØð ð ˆØˆ;Øå�c�3œ<Ñ(Ô(ð "Ý”*˜S‘/”/ˆCå�c�5Ñ!Ô!ð Ø�cÐ!Ð!Ýð !3ñ 4ô 4ð 4åˆKˆKà�eÐ#Ð#Ýð !3ñ 4ô 4ð 4åˆKˆKØÐ݈?�jµ#Ñ6Ô6ˆ?݈Jõ ˆLØÐó c óð — t | ||¦ « }|€
|¦ « }| €*|t u rt } nt j t ¦ « } |€&|t u rt ¦ « }nt
¦ « }| |||fS )z9Common parameter processing for most APIs in this module.)r% r Útemplater Úfsencoder r )ÚprefixÚsuffixÚdirÚoutput_types r Ú_sanitize_paramsr. s s| € å$ V¨V°SÑ9Ô9€KØ
€~Ø�‘”ˆØ
€~Ø�#ÐÐ݈FˆFå”\¥(Ñ+Ô+ˆFØ
€{Ø�#ÐÐÝ‘,”,ˆCˆCå‘-”-ˆCØ�6˜3 Ð+Ð+r&