/opt/imh/python3.13/lib/python3.13/__pycache__
NameSizeModeActions
abc.cpython-313.pyc79280644editdlrm
antigravity.cpython-313.pyc10000644editdlrm
argparse.cpython-313.pyc1040800644editdlrm
ast.cpython-313.pyc1030860644editdlrm
base64.cpython-313.pyc258320644editdlrm
bdb.cpython-313.pyc405800644editdlrm
bisect.cpython-313.pyc35120644editdlrm
bz2.cpython-313.pyc151800644editdlrm
calendar.cpython-313.pyc397080644editdlrm
cmd.cpython-313.pyc189770644editdlrm
code.cpython-313.pyc157990644editdlrm
codecs.cpython-313.pyc405720644editdlrm
codeop.cpython-313.pyc66550644editdlrm
colorsys.cpython-313.pyc45190644editdlrm
compileall.cpython-313.pyc206150644editdlrm
configparser.cpython-313.pyc689660644editdlrm
contextlib.cpython-313.pyc305090644editdlrm
contextvars.cpython-313.pyc2760644editdlrm
copy.cpython-313.pyc106450644editdlrm
copyreg.cpython-313.pyc75510644editdlrm
cProfile.cpython-313.pyc86790644editdlrm
csv.cpython-313.pyc207150644editdlrm
dataclasses.cpython-313.pyc478390644editdlrm
datetime.cpython-313.pyc4260644editdlrm
decimal.cpython-313.pyc30170644editdlrm
difflib.cpython-313.pyc720550644editdlrm
dis.cpython-313.pyc475320644editdlrm
doctest.cpython-313.pyc1076920644editdlrm
enum.cpython-313.pyc858660644editdlrm
filecmp.cpython-313.pyc150420644editdlrm
fileinput.cpython-313.pyc206480644editdlrm
fnmatch.cpython-313.pyc68190644editdlrm
fractions.cpython-313.pyc383840644editdlrm
ftplib.cpython-313.pyc423460644editdlrm
functools.cpython-313.pyc422860644editdlrm
genericpath.cpython-313.pyc78260644editdlrm
getopt.cpython-313.pyc84790644editdlrm
getpass.cpython-313.pyc73260644editdlrm
gettext.cpython-313.pyc225760644editdlrm
glob.cpython-313.pyc236810644editdlrm
graphlib.cpython-313.pyc102120644editdlrm
gzip.cpython-313.pyc319930644editdlrm
hashlib.cpython-313.pyc82910644editdlrm
heapq.cpython-313.pyc177850644editdlrm
hmac.cpython-313.pyc106750644editdlrm
imaplib.cpython-313.pyc626620644editdlrm
inspect.cpython-313.pyc1365370644editdlrm
io.cpython-313.pyc42900644editdlrm
ipaddress.cpython-313.pyc919790644editdlrm
keyword.cpython-313.pyc10560644editdlrm
linecache.cpython-313.pyc85670644editdlrm
locale.cpython-313.pyc590140644editdlrm
lzma.cpython-313.pyc157330644editdlrm
mailbox.cpython-313.pyc1187480644editdlrm
mimetypes.cpython-313.pyc249130644editdlrm
modulefinder.cpython-313.pyc284070644editdlrm
netrc.cpython-313.pyc93410644editdlrm
ntpath.cpython-313.pyc284840644editdlrm
nturl2path.cpython-313.pyc27520644editdlrm
numbers.cpython-313.pyc140470644editdlrm
opcode.cpython-313.pyc40770644editdlrm
operator.cpython-313.pyc173800644editdlrm
optparse.cpython-313.pyc675940644editdlrm
os.cpython-313.pyc458640644editdlrm
pdb.cpython-313.pyc1061180644editdlrm
pickle.cpython-313.pyc784190644editdlrm
pickletools.cpython-313.pyc804420644editdlrm
pkgutil.cpython-313.pyc199740644editdlrm
platform.cpython-313.pyc446900644editdlrm
plistlib.cpython-313.pyc431130644editdlrm
poplib.cpython-313.pyc184400644editdlrm
posixpath.cpython-313.pyc181150644editdlrm
pprint.cpython-313.pyc297130644editdlrm
profile.cpython-313.pyc225780644editdlrm
pstats.cpython-313.pyc378720644editdlrm
pty.cpython-313.pyc74200644editdlrm
pyclbr.cpython-313.pyc151590644editdlrm
pydoc.cpython-313.pyc1397200644editdlrm
py_compile.cpython-313.pyc100840644editdlrm
queue.cpython-313.pyc173480644editdlrm
quopri.cpython-313.pyc95750644editdlrm
random.cpython-313.pyc352710644editdlrm
reprlib.cpython-313.pyc111750644editdlrm
rlcompleter.cpython-313.pyc85870644editdlrm
runpy.cpython-313.pyc144060644editdlrm
sched.cpython-313.pyc76120644editdlrm
secrets.cpython-313.pyc25190644editdlrm
selectors.cpython-313.pyc263700644editdlrm
shelve.cpython-313.pyc133060644editdlrm
shlex.cpython-313.pyc148670644editdlrm
shutil.cpython-313.pyc674670644editdlrm
signal.cpython-313.pyc45590644editdlrm
site.cpython-313.pyc316620644editdlrm
smtplib.cpython-313.pyc473750644editdlrm
socket.cpython-313.pyc422340644editdlrm
socketserver.cpython-313.pyc346670644editdlrm
sre_compile.cpython-313.pyc6420644editdlrm
sre_constants.cpython-313.pyc6450644editdlrm
sre_parse.cpython-313.pyc6380644editdlrm
ssl.cpython-313.pyc652190644editdlrm
stat.cpython-313.pyc55380644editdlrm
statistics.cpython-313.pyc711130644editdlrm
string.cpython-313.pyc116660644editdlrm
stringprep.cpython-313.pyc252750644editdlrm
struct.cpython-313.pyc3400644editdlrm
subprocess.cpython-313.pyc819690644editdlrm
symtable.cpython-313.pyc232110644editdlrm
tabnanny.cpython-313.pyc124320644editdlrm
tarfile.cpython-313.pyc1258450644editdlrm
tempfile.cpython-313.pyc410080644editdlrm
textwrap.cpython-313.pyc179490644editdlrm
this.cpython-313.pyc14270644editdlrm
threading.cpython-313.pyc633120644editdlrm
timeit.cpython-313.pyc146530644editdlrm
token.cpython-313.pyc35880644editdlrm
tokenize.cpython-313.pyc254490644editdlrm
trace.cpython-313.pyc339780644editdlrm
traceback.cpython-313.pyc721390644editdlrm
tracemalloc.cpython-313.pyc274280644editdlrm
tty.cpython-313.pyc26790644editdlrm
turtle.cpython-313.pyc1751510644editdlrm
types.cpython-313.pyc155600644editdlrm
typing.cpython-313.pyc1545970644editdlrm
uuid.cpython-313.pyc323970644editdlrm
warnings.cpython-313.pyc295530644editdlrm
wave.cpython-313.pyc332520644editdlrm
weakref.cpython-313.pyc318180644editdlrm
webbrowser.cpython-313.pyc269010644editdlrm
zipapp.cpython-313.pyc104090644editdlrm
zipimport.cpython-313.pyc265220644editdlrm
_aix_support.cpython-313.pyc47320644editdlrm
_android_support.cpython-313.pyc76370644editdlrm
_apple_support.cpython-313.pyc34970644editdlrm
_collections_abc.cpython-313.pyc467080644editdlrm
_colorize.cpython-313.pyc40260644editdlrm
_compat_pickle.cpython-313.pyc72070644editdlrm
_compression.cpython-313.pyc78200644editdlrm
_ios_support.cpython-313.pyc27310644editdlrm
_markupbase.cpython-313.pyc124480644editdlrm
_opcode_metadata.cpython-313.pyc106930644editdlrm
_osx_support.cpython-313.pyc181420644editdlrm
_pydatetime.cpython-313.pyc945900644editdlrm
_pydecimal.cpython-313.pyc2170580644editdlrm
_pyio.cpython-313.pyc1117930644editdlrm
_pylong.cpython-313.pyc111730644editdlrm
_py_abc.cpython-313.pyc72070644editdlrm
_sitebuiltins.cpython-313.pyc49170644editdlrm
_strptime.cpython-313.pyc345000644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-313.pyc585830644editdlrm
_threading_local.cpython-313.pyc55380644editdlrm
_weakrefset.cpython-313.pyc120640644editdlrm
__future__.cpython-313.pyc47370644editdlrm
__hello__.cpython-313.pyc9810644editdlrm
Edit: /opt/imh/python3.13/lib/python3.13/__pycache__/tempfile.cpython-313.pyc (41008B)
e~Sr/SQrSSKrSSKrSSKrSSKr SSK r SSK r SSKJr SSKrSSKrSSKrSSKr\R0r\ R4\ R6-\ R8-r\"\ S5(a\\ R>-r\r \"\ S5(a\ \ RB-r \"\ S5(a \ RDr"OSr"S r#\"5r$S r%S r&S r'"S S5r(Sr)S.Sjr*Sq+Sr,Sr-Sr.Sr/Sr0Sr1Sq2Sr3Sr4Sr5S/Sjr6S0Sjr7S\#S4Sjr8"SS5r9"S S!5r:S1SS"S#.S$jjr;\ RxS%:wd\RzS&:Xa\;r>O\"\ S'5q?S2SS(.S)jjr>"S*S+\R5rA"S,S-5rBg)3aTemporary 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 TemporaryFileSpooledTemporaryFileTemporaryDirectorymkstempmkdtempmktempTMP_MAX gettempprefixtempdir gettempdirgettempprefixb gettempdirbN)Random O_NOFOLLOWO_BINARYr i'tmpcR[R"U5 g![a gf=f)NTF)_oslstatOSError)fns ./opt/imh/python3.13/lib/python3.13/tempfile.py_existsrLs+ "  s  &&cSnUHnUcM[U[R5(a[R"U5n[U[5(aU[ La [ S5e[nMnU[La [ S5e[ nM Uc,[b[[[ 5(a[ $[$U$)zBLook at the type of all args and divine their implied return type.Nz1Can't mix bytes and non-bytes in path components.) isinstancerPathLikefspathbytesstr TypeErrorr )args return_typeargs r_infer_return_typer%UsK ;  c3<< ( (**S/C c5 ! !c!!344Ke#!344K!" ?j#66JL c[XU5nUcU"5nUc*U[La[nO[R"[5nUcU[La [ 5nO [ 5nXX#4$)z9Common parameter processing for most APIs in this module.)r%r templaterfsencoder r)prefixsuffixdir output_types r_sanitize_paramsr.rs`$VS9K ~ ~ # F\\(+F { # ,C-C 3 ++r&c8\rSrSrSrSr\S5rSrSr Sr g) _RandomNameSequenceaAn instance of _RandomNameSequence generates an endless sequence of unpredictable strings which can safely be incorporated into file names. Each string is eight characters long. Multiple threads can safely use the same instance at the same time. _RandomNameSequence is an iterator.%abcdefghijklmnopqrstuvwxyz0123456789_c[R"5nU[USS5:wa[5UlXlUR$)N_rng_pid)rgetpidgetattr_Random_rngr4)selfcur_pids rrng_RandomNameSequence.rngs6**, gdJ5 5 DI#Myyr&cU$Nr9s r__iter___RandomNameSequence.__iter__s r&chSRURRURSS95$)N)k)joinr;choices charactersr@s r__next___RandomNameSequence.__next__s)wwtxx''1'=>>r&)r8r4N) __name__ __module__ __qualname____firstlineno____doc__rIpropertyr;rArJ__static_attributes__r?r&rr0r0s*+9J ?r&r0c$/nSH3n[R"U5nU(dM"URU5 M5 [RS:XaRUR [R R S5[R RS5SSSS/5 OUR /S Q5 UR[R"55 U$![[4a# UR[R5 U$f=f) zWGenerate a list of candidate temporary directories which _get_default_tempdir will try.)TMPDIRTEMPTMPntz~\AppData\Local\Tempz%SYSTEMROOT%\Tempzc:\tempzc:\tmpz\tempz\tmp)z/tmpz/var/tmpz/usr/tmp) rgetenvappendnameextendpath expanduser expandvarsgetcwdAttributeErrorrcurdir)dirlistenvnamedirnames r_candidate_tempdir_listresG+**W% 7GNN7++  xx4,,-DE,,-AB#Y'D E 9:#szz|$ N G $#szz" N#s6$C/DDc[5nUc [5nUHnU[R:wa[RR U5n[ S5Hn[U5n[RRX$5n[R"U[S5n[R"US5 [R"U5 [R"U5 Us s $ M [+[,R.SU-5e![R"U5 f=f![R"U5 f=f![a M[al [R S:XaR[RR#U5(a.[R$"U[R&5(aGMk GM[(a  GMf=f)a]Calculate the default directory to use for temporary files. This routine should be called exactly once. We determine whether or not a candidate temp dir is usable by trying to create and write to a file in that directory. If this is successful, the test file is deleted. To prevent denial of service, the name of the test file must be randomized.dsblatrWz)No usable temporary directory found in %s)r0rerrar\abspathrangenextrGopen_bin_openflagswritecloseunlinkFileExistsErrorPermissionErrorrZisdiraccessW_OKrFileNotFoundError_errnoENOENT)rbnamerr,seqrZfilenamefds r_get_default_tempdirr}sR !E)+ #** ((""3'C:C;Dxx}}S/H XXh>)& "g. " JJx(  8 FMMG#$ %% " JJx(" " HH$)<)<JJsCHH--  sI E 'D>D/E D,,D//EE  GA+G GGc[c@[R5 [c [5q[R 5 [$[$![R 5 f=f)z7Common setup sequence for all user-callable interfaces.)_name_sequence _once_lockacquirer0releaser?r&r_get_candidate_namesrsP !%!4!6    >    AA$c[RRU5n[5nU[La[ [R U5n[[5Hen[U5n[RRXU-U-5n[R"SU5 [R"XS5n X4s $ [[(R*S5e![a M[ag [R S:XaQ[RR#U5(a-[R$"U[R&5(aMef=f)z>Code common to mkstemp, TemporaryFile, and NamedTemporaryFile.ztempfile.mkstemprhrWz#No usable temporary file name found)rr\rirrmapr)rjr rkrG_sysauditrlrqrrrZrsrtrurwEEXIST) r,presufflagsr-namesrzrZfiler|s r_mkstemp_innerrs ((  3 C "EeCLL%(W~E{xx}}S*s"23 %t, $u-Bx!$ &--? AA   D SXX^^C%8%8 3)) s'C E,A+EEcU[R;a U"U/UQ7SS06 g[RRU5(d U"U/UQ76 gg)Nfollow_symlinksF)rsupports_follow_symlinksr\islink)funcr\r"s r_dont_follow_symlinksrsG s+++ T0D0%0 XX__T " " TD#r&c[Rn[XS5 [[RUS5 g![a N(f=f)Nr)rchflagsrr`chmod)r\rs r _resetpermsrs@0++ gQ/#))T51    s: AAc6[R"[5$)z7The default prefix for temporary directories as string.)rfsdecoder(r?r&rr r $ << !!r&c6[R"[5$)z6The default prefix for temporary directories as bytes.)rr)r(r?r&rr r (rr&c[c@[R5 [c [5q[R 5 [$[$![R 5 f=f)z&Private accessor for tempfile.tempdir.)r rrr}rr?r&r _gettempdirr.sL !.0    N7N    rc>[R"[55$)z Returns tempfile.tempdir as str.)rrrr?r&rr r : << &&r&c>[R"[55$)z"Returns tempfile.tempdir as bytes.)rr)rr?r&rrr>rr&cb[XU5upp$U(a[nO[n[X!XU5$)a@User-callable function to create and return a unique temporary file. The return value is a pair (fd, name) where fd is the file descriptor returned by os.open, and name is the filename. If 'suffix' is not None, the file name will end with that suffix, otherwise there will be no suffix. If 'prefix' is not None, the file name will begin with that prefix, otherwise a default prefix is used. If 'dir' is not None, the file will be created in that directory, otherwise a default directory is used. If 'text' is specified and true, the file is opened in text mode. Else (the default) the file is opened in binary mode. If any of 'suffix', 'prefix' and 'dir' are not None, they must be the same type. If they are bytes, the returned name will be bytes; str otherwise. The file is readable and writable only by the creating user ID. If the operating system uses permission bits to indicate whether a file is executable, the file is executable by no one. The file descriptor is not inherited by children of this process. Caller is responsible for deleting the file when done with it. )r._text_openflagsrmr)r+r*r,textr-rs rrrBs1:(8'L$FC  #vk BBr&c[XU5upp#[5nU[La[[R U5n[ [5Hn[U5n[RRX!U-U-5n[R"SU5 [R"US5 [RR)U5s $ [[*R,S5e![a M[ah [R S:XaR[RR#U5(a.[R$"U[R&5(aGMef=f)acUser-callable function to create and return a unique temporary directory. The return value is the pathname of the directory. Arguments are as for mkstemp, except that the 'text' argument is not accepted. The directory is readable, writable, and searchable only by the creating user. Caller is responsible for deleting the directory when done with it. ztempfile.mkdtemprrWz(No usable temporary directory name found)r.rrrrr)rjr rkr\rGrrmkdirrqrrrZrsrtrurirwr)r+r*r,r-rrzrZrs rrris(8'L$FC "EeCLL%(W~E{xx}}S4-&"89 %t,  IIdE "xx%%!$ &--D FF   D SXX^^C%8%8 3)) sC++ E)8A+E)'E)rDcUc [5n[5n[[5HGn[ U5n[ R RX!U-U-5n[U5(aMEUs $ [[RS5e)aUser-callable function to return a unique temporary file name. The file is not created. Arguments are similar to mkstemp, except that the 'text' argument is not accepted, and suffix=None, prefix=None and bytes file names are not supported. THIS FUNCTION IS UNSAFE AND SHOULD NOT BE USED. The file name may refer to a file that did not exist at some point, but by the time you get around to creating it, someone else may have beaten you to the punch. z"No usable temporary filename found) r rrjr rkrr\rGrrqrwr)r+r*r,rrzrZrs rrrsr$ {l "EW~E{xx}}S4-&"89t}}K  &--> @@r&cr\rSrSrSrSrSrS Sjr\RS:H\R4Sjr Sr Sr S rg ) _TemporaryFileCloserizA separate object allowing proper closing of a temporary file's underlying file object, without adding a __del__ method to the temporary file.Fc4XlX lX0lX@lgr>)rrZdeletedelete_on_closer9rrZrrs r__init___TemporaryFileCloser.__init__s   .r&rWcUR(dySUlUR(d!SUlURR5 UR(a-U(aUR (dU"UR 5 gggg![a gf=f!UR(a=U(aUR (d$U"UR 5 f![a ff=fff=fNT)cleanup_called close_calledrrorrrZrv)r9windowsrps rcleanup_TemporaryFileCloser.cleanups"""&D  (((,D%IIOO%;;D4H4Htyy)5I;#-;;D4H4Htyy),5I;sA2B6B BB*C,CC, C'$C,&C''C,cFUR(dWSUlURR5 UR(a#UR(aUR 5 gggg!UR(a#UR(aUR 5 fff=fr)rrrorrrr@s rro_TemporaryFileCloser.closesm  $D  # !;;4#7#7LLN$8; ! ;;4#7#7LLN$8;s A**6B c$UR5 gr>)rr@s r__del___TemporaryFileCloser.__del__s  r&)rrrrrrZNTT)rLrMrNrOrPrrrrrZrprrorrRr?r&rrrs;NL/ #xx4/ #r&rc@\rSrSrSrS SjrSrSrSrSr Sr S r g ) _TemporaryFileWrapperizTemporary file wrapper This class provides a wrapper around files opened for temporary use. In particular, it seeks to automatically remove the file when it is no longer needed. c@XlX l[XUU5Ulgr>)rrZr_closerrs rr_TemporaryFileWrapper.__init__s  +D,;= r&c^URSn[X!5n[US5(a4Um[R"T5U4Sj5nUR UlUn[ U[5(d [XU5 U$)Nr__call__c>T"U0UD6$r>r?)r"kwargsrs r func_wrapper7_TemporaryFileWrapper.__getattr__..func_wrappersT,V,,r&) __dict__r6hasattr _functoolswrapsrrintsetattr)r9rZrarrs @r __getattr__!_TemporaryFileWrapper.__getattr__s{}}V$ D  1j ! !D   d # -$ -$(<)r __enter__r@s rr_TemporaryFileWrapper.__enter__s  r&crURRXU5nURR5 U$r>)r__exit__rr)r9excvaluetbresults rr_TemporaryFileWrapper.__exit__s-##C3  r&c8URR5 g)z1 Close the temporary file, possibly deleting it. N)rror@s rro_TemporaryFileWrapper.close s r&c#:# URHnUv M g7fr>)r)r9lines rrA_TemporaryFileWrapper.__iter__s IIDJs)rrrZNr) rLrMrNrOrPrrrrrorArRr?r&rrrs%= *  r&rT)errorsrc 8^^^^ ^^[TTT5ummmm[m [RS:Xa!U(aU (aT [R-m SU;a[ R "U5nSmUU UUUU4Sjn [ R"TXX2UU S9n [U SU 5n [U SU 5n TU l[U TXy5$! U R5 e=f! Tb8[RS:XaU(aU (d[R"T5 e=f)aGCreate and return a temporary file. Arguments: 'prefix', 'suffix', 'dir' -- as for mkstemp. 'mode' -- the mode argument to io.open (default "w+b"). 'buffering' -- the buffer size argument to io.open (default -1). 'encoding' -- the encoding argument to io.open (default None) 'newline' -- the newline argument to io.open (default None) 'delete' -- whether the file is automatically deleted (default True). 'delete_on_close' -- if 'delete', whether the file is deleted on close (default True) or otherwise either on context manager exit (if context manager was used) or on object finalization. . 'errors' -- the errors argument to io.open (default None) The file is created as mkstemp() would do it. Returns an object with a file-like interface; the name of the file is accessible as its 'name' attribute. The file will be automatically deleted when it is closed unless the 'delete' argument is set to False. On POSIX, NamedTemporaryFiles cannot be automatically deleted if the creating process is terminated abruptly with a SIGKILL signal. Windows can delete the file even in this case. rWbNc,>[TTTTT5unmU$r>)r)r"r|r,rrZr-r*r+s ropener"NamedTemporaryFile..openerBs!#vvukJD r& bufferingnewlineencodingrrbufferraw) r.rmrrZ O_TEMPORARY_io text_encodingrlr6rrorp)moderrrr+r*r,rrrrrrrrZr-s ``` @@@rrrs6(8'L$FFC E xx4F   $$$X. DxxT '6%' $$/C#uc*CCH(tVM M  JJL    HH O JJt  s>C-CCC>Dposixcygwin O_TMPFILErc ^^^^ ^ ^ SU;a[R"U5n[TTT5ummmm [m [(aESm UU U 4Sjn[R "TXX2XxS9n [ U SU 5n [ U SU 5n T U lU $Sm UU U U UU4Sjn[R "TXX2UUS9n [ U SU 5n [ U SU 5n T U lU $![a SqNV[a Naf=f) a(Create and return a temporary file. Arguments: 'prefix', 'suffix', 'dir' -- as for mkstemp. 'mode' -- the mode argument to io.open (default "w+b"). 'buffering' -- the buffer size argument to io.open (default -1). 'encoding' -- the encoding argument to io.open (default None) 'newline' -- the newline argument to io.open (default None) 'errors' -- the errors argument to io.open (default None) The file is created as mkstemp() would do it. Returns an object with a file-like interface. The file has no name, and will cease to exist when it is closed. rNc>T[R-[R)-n[R"TUS5mT$)Nrh)rrO_CREATrl)r"flags2r,r|rs rrTemporaryFile..opener}s3#--/CKK<?XXc651 r&rrrFc>[TTTTT5umn[R"U5 T$![an[R"T5 eSnAff=fr>)rrrp BaseExceptionro) r"rZer,r|rr-r*r+s rrrsQ%c665+NHB  4 I!  "  s- AAA) rrr.rm_O_TMPFILE_WORKSrlr6rZIsADirectoryErrorr)rrrrr+r*r,rrrrr|rr-s ``` @@@rrrcs $ d?((2H+;FFC+P([  B   xxT(/'->dHd3c5#. &  xxT '6%'dHd+c5#& E% ) $)   s9C C-! C-,C-cR\rSrSrSrSrS'SS.Sjjr\"\R5r Sr Sr S r S rS rS rS r\S5r\S5r\S5rSrSrSr\S5r\S5r\S5rSrSrSrSrSr Sr!Sr"Sr#Sr$S r%S(S!jr&S"r'S#r(S$r)S%r*S&r+g))rizTemporary file wrapper, specialized to switch from BytesIO or StringIO to a real file when it exceeds a certain size or when a fileno is needed. FNrc  SU;a"5UlOD[R"U5n[R"[R"5XIUS9UlXlSUlX#XgXEXS.Ulg)Nr)rrrF)rrr+r*rrr,r)rBytesIO_filer TextIOWrapper _max_size_rolled_TemporaryFileArgs) r9max_sizerrrrr+r*r,rs rrSpooledTemporaryFile.__init__sm $;DJ((2H**3;;=%-$+-DJ" +/-3/7*-#Ar&cUR(agURnU(a&UR5U:aUR5 gggr>)rrtellrollover)r9rrs r_checkSpooledTemporaryFile._checks4 <<>>  h. MMO/8r&cUR(agURn[S0URD6=o lU?UR 5n[ US5(a8UR RUR5R55 OURUR55 URUS5 SUlg)NrrTr?) rrrrr rrrndetachgetvalueseek)r9rnewfileposs rr SpooledTemporaryFile.rollovers <<zz,Gt/F/FGG*  #iik 7H % % NN !7!7!9 : MM$--/ * S! r&cRURR(a [S5eU$)Nz%Cannot enter context with closed file)rclosed ValueErrorr@s rrSpooledTemporaryFile.__enter__s ::  DE E r&c8URR5 gr>rror9rrrs rrSpooledTemporaryFile.__exit__ r&c6URR5$r>)rrAr@s rrASpooledTemporaryFile.__iter__zz""$$r&cUR(d;[R"SRU5[SUS9 UR 5 gg)NzUnclosed file {!r}) stacklevelsource)r _warningswarnformatResourceWarningror@s rrSpooledTemporaryFile.__del__s<{{ NN$++D1   JJLr&c8URR5 gr>rr@s rroSpooledTemporaryFile.closerr&c.URR$r>)rrr@s rrSpooledTemporaryFile.closedzz   r&c.URR$r>)rrr@s rrSpooledTemporaryFile.encodingzz"""r&c.URR$r>)rrr@s rrSpooledTemporaryFile.errorsr/r&cVUR5 URR5$r>)r rfilenor@s rr6SpooledTemporaryFile.filenos zz  ""r&c8URR5 gr>)rflushr@s rr9SpooledTemporaryFile.flush rr&c6URR5$r>)risattyr@s rr<SpooledTemporaryFile.isattyzz  ""r&cnURR$![a URSs$f=f)Nr)rrr`rr@s rrSpooledTemporaryFile.modes5 3::?? " 3**62 2 3s 44cPURR$![a gf=fr>)rrZr`r@s rrZSpooledTemporaryFile.names' ::?? "  s  %%c.URR$r>)rnewlinesr@s rrDSpooledTemporaryFile.newlines r2r&c6URR5$r>)rreadabler@s rrGSpooledTemporaryFile.readable$r!r&c4URR"U6$r>)rreadr9r"s rrJSpooledTemporaryFile.read'zz%%r&c4URR"U6$r>)rread1rKs rrOSpooledTemporaryFile.read1*szz&&r&c8URRU5$r>)rreadintor9rs rrRSpooledTemporaryFile.readinto-szz""1%%r&c8URRU5$r>)r readinto1rSs rrVSpooledTemporaryFile.readinto10szz##A&&r&c4URR"U6$r>)rreadlinerKs rrYSpooledTemporaryFile.readline3szz""D))r&c4URR"U6$r>)r readlinesrKs rr\SpooledTemporaryFile.readlines6szz##T**r&c6URR5$r>)rseekabler@s rr_SpooledTemporaryFile.seekable9r!r&c4URR"U6$r>)rrrKs rrSpooledTemporaryFile.seek<rMr&c6URR5$r>)rr r@s rr SpooledTemporaryFile.tell?szz  r&cUcURR5$XR:aUR5 URRU5$r>)rtruncaterr )r9sizes rrfSpooledTemporaryFile.truncateBsB <::&&( (nn$ ::&&t, ,r&c6URR5$r>)rwritabler@s rrjSpooledTemporaryFile.writableJr!r&cbURnURU5nURU5 U$r>)rrnr )r9srrvs rrnSpooledTemporaryFile.writeMs)zz ZZ] D r&c"URS:XdUR(aURRU5$[ U5nUHBnUR U5 UR(dM'URRU5s $ g)Nr)rrr writelinesiterrn)r9iterableitrs rrqSpooledTemporaryFile.writelinesSsf >>Q $,,::((2 2 (^D JJt |||zz,,R00r&c6URR5$r>)rrr@s rrSpooledTemporaryFile.detach]r>r&)rrrr)rw+bNNNNNr>),rLrMrNrOrPrr classmethod_types GenericAlias__class_getitem__r r rrrArrorQrrrr6r9r<rrZrDrGrJrOrRrVrYr\r_rr rfrjrnrqrrRr?r&rrrs.G9;(,/3A?CA"$F$7$78 * %!!##!!##33  ##%&'&'*+%&!-% 1#r&rc\rSrSrSrSSS.Sjjr\SSj5r\SSj5rS r S r S r S r \"\ R5rS rg)riaaCreate 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 everything contained in it are removed (unless delete=False is passed or an exception is raised during cleanup and ignore_cleanup_errors is not True). Optional Arguments: suffix - A str suffix for the directory name. (see mkdtemp) prefix - A str prefix for the directory name. (see mkdtemp) dir - A directory to create this temp dir in. (see mkdtemp) ignore_cleanup_errors - False; ignore exceptions during cleanup? delete - True; whether the directory is automatically deleted. NT)rc [XU5UlX@lXPl[R "XR URSRU5URURS9Ulg)NzImplicitly cleaning up {!r}) warn_message ignore_errorsr) rrZ_ignore_cleanup_errors_delete_weakreffinalize_cleanupr( _finalizer)r9r+r*r,ignore_cleanup_errorsrs rrTemporaryDirectory.__init__usXFC0 &;# "++ --6==dC55dllLr&cH^^^^UUUU4Sjn[R"TUS9 g)Nc~>[U[5(ahT(aUT:Xa T(ageUT:wa([[RR U55 [U5 [R "U5 g[U[5(agT(deg![a TRUTS9 g[ai [RRU5(a$[RRU5(a T(ageTRUTUT:HS9 gf=f![a gf=f)Nr)rrepeated) rrrrrr\rdrpr_rmtreers isjunctionrv)rr\rclsrrZrs ronexc)TemporaryDirectory._rmtree..onexcs#// $t|#CHH$4$4T$:;%= 4(&C!233$%+-G D F* = #xx~~d33sxx7J7J47P7P, &! D .2dl$= =)sH9D/(BD,8D/:AD,D/D,)D/+D,,D// D<;D<)r)_shutilrmtree)rrZrrrs```` rrTemporaryDirectory._rmtrees$ $ L t5)r&chU(a+URXS9 [R"U[5 ggNr)rr&r'r))rrZrrrs rrTemporaryDirectory._cleanups&  KKK : NN< 9 r&cbSRURRUR5$)Nz <{} {!r}>)r( __class__rLrZr@s r__repr__TemporaryDirectory.__repr__s#!!$.."9"9499EEr&cUR$r>)rZr@s rrTemporaryDirectory.__enter__s yyr&cHUR(aUR5 ggr>)rrrs rrTemporaryDirectory.__exit__s << LLN r&cURR5(d.[RR UR 5(a%UR UR URS9 ggr)rrrr\existsrZrrr@s rrTemporaryDirectory.cleanupsK ?? ! ! # #sxxtyy'A'A LL$2M2ML N(Br&)rrrrZNNNF)FF)FT)rLrMrNrOrPrrzrrrrrrr{r|r}rRr?r&rrrasp&6:',L8<L'*'*R:: FO$F$7$78r&rr>r)NNN)rxryNNNNNT)rxryNNNNN)CrP__all__ functoolsrwarningsr&iorosrshutilrerrnorwrandomrr7sysrtypesr{weakrefr_thread allocate_lock_allocate_lockO_RDWRrO_EXCLrrrrmrr r(rrr%r.r0rer}rrrrrr r r rr rrrrrrrrZplatformrrIOBaserrr?r&rrs2 $&&**s{{*SZZ7 3 s~~%O  3 cll"N 3 kkGG   :,$??06+%Z A:2""  ''$CN&FPX4@@((V<<|;?9=(,<8<'+<|88w$--83'M sK09=8<I*.IVp#3::p#f\9\9r&