+
    ik  c                   s:   . R,Ot ^ RIt^ RIt^ RIt^ RIt^ RI	t
^ RIt^ RIHt ^ RIt^ RIt^ RIt^ RIt]P.                  t]P2                  ]P4                  ,          ]P6                  ,          t]! ]R4      '       d   ]]P<                  ,          t]t]! ]R4      '       d   ]]P@                  ,          t]! ]R4      '       d   ]PB                  t!MRt!R	t"]! 4       t#R
 t$R t%R t& ! R R4      t'R t(R-R lt)Rs*R t+R t,R t-R t.R t/R t0Rs1R t2R t3R t4R.R lt5R/R lt6R]"R3R lt7 ! R R4      t8 ! R  R!4      t9R0R#RR$R"/R% llt:]Pv                  R&8w  g   ]Px                  R'8X  d   ]:t=M]! ]R(4      s>R1R#R/R) llt= ! R* R]P~                  4      t@ ! R+ R4      tAR# )2NamedTemporaryFileSpooledTemporaryFileTemporaryDirectoryTMP_MAXN)Random
O_NOFOLLOWO_BINARYi'  Ztmpc                 sX     \         P                  ! V 4       R #   \         d     R# i ; i)TF)_osZlstatOSError)Zfn   &!/usr/lib64/python3.14/tempfile.py_existsr   L   s+    		"   s    ))c                  s   R pV  F  pVf   K	  \        V\        P                  4      '       d   \        P                  ! V4      p\        V\        4      '       d   V\
        J d   \        R4      h\        pKr  V\        J d   \        R4      h\
        pK  	  Vf/   \        e   \        \        \
        4      '       d   \
        # \        # V# )Nz1Can't mix bytes and non-bytes in path components.)
isinstancer   ZPathLikeZfspathbytesstrZ	TypeErrortempdir)argsZreturn_typeZargs   *  r
   _infer_return_typer   U   s    K;c3<<((**S/Cc5!!c! !3 4 4Ke# !3 4 4K! " ?j#66J L    c                 s    \        WV4      pVf   V! 4       pV f,   V\        J d   \        p M\        P                  ! \        4      p Vf    V\        J d   \        4       pM
\        4       pWW#3# N)r   r   templater   fsencode
gettempdirgettempdirb)prefixsuffixdiroutput_types   &&& r
   _sanitize_paramsr   r   s`    $VS9K~~#F\\(+F
{#,C-C3++r   c                   s@   a  ] tR t^t o Rt]R 4       tR tR tRt	V t
R# )_RandomNameSequenceZ%abcdefghijklmnopqrstuvwxyz0123456789_c                s    \         P                  ! 4       pV\        V R R4      8w  d   \        4       V n        Wn        V P                  # )_rng_pidN)r   Zgetpidgetattr_Random_rngr   )selfZcur_pid   & r
   rngZ_RandomNameSequence.rng   s6    **,gdJ55	DI#Myyr   c                s    V # r    r"   r	   r
   __iter__Z_RandomNameSequence.__iter__   s    r   c                sn    R P                  V P                  P                  V P                  ^R7      4      # ) )Zk)joinr$   Zchoices
charactersr&   r	   r
   __next__Z_RandomNameSequence.__next__   s)    wwtxx''1'=>>r   )r!   r   N)__name__
__module____qualname____firstlineno__r*   propertyr$   r'   r+   __static_attributes____classdictcell__Z__classdict__   @r
   r   r      s-      9J ? ?r   r   c                  s*   . p R F4  p\         P                  ! V4      pV'       g   K#  V P                  V4       K6  	  \         P                  R8X  dS   V P	                  \         P
                  P                  R4      \         P
                  P                  R4      RRRR.4       MV P	                  . R	O4        V P                  \         P                  ! 4       4       V #   \        \        3 d$    T P                  \         P                  4        T # i ; i)
TMPDIRntz~\AppData\Local\Tempz%SYSTEMROOT%\Tempzc:\tempzc:\tmpz\tempz\tmp)r5   ZTEMPZTMP)z/tmpz/var/tmpz/usr/tmp)r   ZgetenvZappendnameZextendpathZ
expanduserZ
expandvarsZgetcwdAttributeErrorr   curdir)dirlistZenvnamedirnames      r
   _candidate_tempdir_listr=      s     G +**W%7GNN7+ +
 xx4,,-DE,,-AB#Y'D 	E 	9:#szz|$ N G$ #szz"N#s   8$C 0DDc                 s   \        4       pV f   \        4       p V  F  pV\        P                  8w  d    \        P                  P                  V4      p\        ^d4       F  p\        V4      p\        P                  P                  W$4      p \        P                  ! V\        R4      p  \        P                  ! VR4       \        P                  ! V4        \        P                  ! V4       Vu u # 	  K  	  \+        \,        P.                  RV ,          4      h  \        P                  ! T4       i ; i  \        P                  ! T4       i ; i  \         d     EK  \         dp    \        P                   R8X  dU   \        P                  P#                  T4      '       d0   \        P$                  ! T\        P&                  4      '       d    EKu    EK  \(         d      EK  i ; i)N  s   blatr6   z)No usable temporary directory found in %s)r   r=   r   r:   r8   abspathrangenextr)   open_bin_openflagswritecloseunlinkFileExistsErrorPermissionErrorr7   isdiraccessW_OKr   FileNotFoundError_errnoZENOENT)r;   Znamerr   seqr7   Zfilenamefds   &      r
   _get_default_tempdirrP      sR     !E)+#**((""3'C:C;Dxx}}S/HXXh>)&		"g.		"JJx(
 	 8 FMMG#$% % 		"JJx(" "  HH$)<)<JJsCHH-- sZ   E)D D5ED22D55EEG'G'(:G'#*G'G' G'&G'c                      \         fB   \        P                  4         \         f   \        4       s \        P	                  4        \         # \         #   \        P	                  4        i ; ir   )_name_sequence
_once_lockacquirer   releaser%   r   r
   _get_candidate_namesrV      sP     	!%!4!6 >     A A&c                 s   \         P                  P                  V 4      p \        4       pV\        J d   \        \         P                  V4      p\        \        4       Fm  p\        V4      p\         P                  P                  WV,           V,           4      p\        P                  ! R V4        \         P                  ! WR4      p	Y3u # 	  \        \(        P*                  R4      h  \         d     K  \         dl    \         P                   R8X  dU   \         P                  P#                  T 4      '       d0   \         P$                  ! T \         P&                  4      '       d    EK  h i ; i)ztempfile.mkstempr>   r6   z#No usable temporary file name found)r   r8   r?   rV   r   mapr   r@   r   rA   r)   _sysauditrB   rG   rH   r7   rI   rJ   rK   rM   EEXIST)
r   ZpreZsufflagsr   namesrN   r7   filerO   s
   &&&&&     r
   _mkstemp_innerr_      s    ((

3
C "EeCLL%(W~E{xx}}S*s"23

%t,	$u-B x! $ &--?A A  	 	 D SXX^^C%8%8

3))	s$   0C((E+6E+?:E+:*E+)E+c                 s    V \         P                  9   d   V ! V.VO5R R/  R# \         P                  P                  V4      '       g   V ! V.VO5!   R# R# )Zfollow_symlinksFN)r   Zsupports_follow_symlinksr8   Zislink)funcr8   r   s   &&*r
   _dont_follow_symlinksra     sG    s+++T0D0%0XX__T""TD #r   c                 s     \         P                  p\        W^ 4       \        \         P                  V R4       R#   \         d     L*i ; i)      N)r   chflagsra   r9   Zchmod)r8   rd   r#   r
   _resetpermsre     s@    0++ 	gQ/#))T51	  s   ; A	A	c                  6    \         P                  ! \        4      # r   )r   fsdecoder   r%   r   r
   gettempprefixrh   $      <<!!r   c                  rf   r   )r   r   r   r%   r   r
   gettempprefixbrj   (  ri   r   c                  rQ   r   )r   rS   rT   rP   rU   r%   r   r
   _gettempdirrk   .  sL     	!.0 N7N  rW   c                  >    \         P                  ! \        4       4      # r   )r   rg   rk   r%   r   r
   r   r   :      <<&&r   c                  rl   r   )r   r   rk   r%   r   r
   r   r   >  rm   r   c                 sd    \        WV4      w  rr$V'       d   \        pM\        p\        W!WV4      # r   )r   _text_openflagsrC   r_   )r   r   r   Ztextr   r\   s   &&&&  r
   mkstempro   B  s1    : (8'L$FC#vkBBr   c                 s   \        WV4      w  rr#\        4       pV\        J d   \        \        P
                  V4      p\        \        4       F  p\        V4      p\        P                  P                  W!V,           V ,           4      p\        P                  ! R V4        \        P                  ! VR4       \        P                  P)                  T4      u # 	  \        \*        P,                  R4      h  \         d     K  \         dl    \        P                   R8X  dU   \        P                  P#                  T4      '       d0   \        P$                  ! T\        P&                  4      '       d    EK(  h i ; i)ztempfile.mkdtemprc   r6   z(No usable temporary directory name found)r   rV   r   rX   r   r   r@   r   rA   r8   r)   rY   rZ   ZmkdirrG   rH   r7   rI   rJ   rK   r?   rM   r[   )r   r   r   r   r]   rN   r7   r^   s   &&&     r
   mkdtemprp   i  s    (8'L$FC "EeCLL%(W~E{xx}}S4-&"89

%t,	IIdE" xx%%! $ &--DF F  	 	 D SXX^^C%8%8

3))	s$    C44E7E7:E7*E75E7r(   c                 s,   Vf   \        4       p\        4       p\        \        4       FP  p\	        V4      p\
        P                  P                  W!V,           V ,           4      p\        V4      '       d   KN  Vu # 	  \        \        P                  R4      h)Nz"No usable temporary filename found)r   rV   r@   r   rA   r   r8   r)   r   rG   rM   r[   )r   r   r   r]   rN   r7   r^   s   &&&    r
   mktemprq     sr    $ {l "EW~E{xx}}S4-&"89t}}K	  &-->@ @r   c                   sz   a  ] tR tRt o RtRtR
R lt]P                  R8H  ]P                  3R lt
R tR tRtV tR	# )_TemporaryFileCloseri  Fc                sB    Wn         W n        W0n        W@n        WPn        R # r   )r^   r7   deletedelete_on_closewarn_message)r"   r^   r7   rs   rt   ru   s   &&&&&&r
   __init__Z_TemporaryFileCloser.__init__  s     		.(r   r6   c                s   V P                   '       g   R V n          V P                  '       g"   R V n        V P                  P                  4        V P                  '       d2   V'       d   V P
                  '       g    V! V P                  4       R# R# R# R#   \         d     R# i ; i  T P                  '       dA   T'       d   T P
                  '       g&    T! T P                  4       i   \         d     i i ; ii i ; iTN)cleanup_calledclose_calledr^   rE   rs   rt   r7   rL   )r"   ZwindowsrF   s   &&&r
   cleanupZ_TemporaryFileCloser.cleanup  s    """"&D((((,D%IIOO% ;;;D4H4H4Htyy) 5I; # -  ;;;D4H4H4Htyy),  5I;sL   B' !B' ;B B$#B$'C;C;C('C;(C63C;5C66C;c                sX   V P                   '       g]   R V n          V P                  P                  4        V P                  '       d'   V P                  '       d   V P                  4        R# R# R# R#   T P                  '       d%   T P                  '       d   T P                  4        i i i ; irw   )ry   r^   rE   rs   rt   rz   r&   r	   r
   rE   Z_TemporaryFileCloser.close  sz        $D#		!;;;4#7#7#7LLN $8; !
 ;;;4#7#7#7LLN $8;s   A1 1$B)B)c                s    V P                   pV P                  4        V'       g(   \        P                  ! V P                  \
        4       R # R # r   )ry   rz   	_warningswarnru   ResourceWarning)r"   ry   r#   r
   __del__Z_TemporaryFileCloser.__del__  s2    ((NN4,,o> r   )rx   ry   rs   rt   r^   r7   ru   N)TTz#Implicitly cleaning up unknown file)r,   r-   r.   r/   rx   ry   rv   r   r7   rF   rz   rE   r~   r1   r2   r3   r4   r
   rr   rr     s>     
 NL)  #xx4/  #? ?r   rr   c                   sN   a  ] tR tRt o RR ltR tR tR tR tR t	R t
R	tV tR
# )_TemporaryFileWrapperi  c                sP    Wn         W n        \        VVVVR V : 2R7      V n        R# )zImplicitly cleaning up )ru   N)r^   r7   rr   _closer)r"   r^   r7   rs   rt      &&&&&r
   rv   Z_TemporaryFileWrapper.__init__  s.    		+24(;
r   c                sb    V P                   R ,          pR\        V 4      P                   RV: R2# )r^   Z<z file=Z>)__dict__Ztyper,   )r"   r^   r#   r
   __repr__Z_TemporaryFileWrapper.__repr__  s0    }}V$4:&&'wq11r   c                s  a V P                   R ,          p\        W!4      p\        VR4      '       d5   Vo\        P                  ! S4      V3R l4       pV P
                  Vn        Tp\        V\        4      '       g   \        WV4       V# )r^   Z__call__c                  s   < S! V / VB # r   r%   )r   Zkwargsr`   s   *,r
   func_wrapperZ7_TemporaryFileWrapper.__getattr__.<locals>.func_wrapper  s    T,V,,r   )	r   r   hasattr
_functoolsZwrapsr   r   ZintZsetattr)r"   r7   r^   Zar   r`   s   &&   @r
   __getattr__Z!_TemporaryFileWrapper.__getattr__  s{     }}V$D1j!!Dd#- $- $(<<L A!S!!D"r   c                s:    V P                   P                  4        V # r   )r^   	__enter__r&   r	   r
   r   Z_TemporaryFileWrapper.__enter__  s    		r   c                sr    V P                   P                  WV4      pV P                  P                  4        V# r   )r^   __exit__r   rz   )r"   excvaluetbZresults   &&&& r
   r   Z_TemporaryFileWrapper.__exit__  s-    ##C3r   c                :    V P                   P                  4        R # r   )r   rE   r&   r	   r
   rE   Z_TemporaryFileWrapper.close  s     	r   c              #  s<   "   V P                    F  pVx  K	  	  R # 5ir   )r^   )r"   liner#   r
   r'   Z_TemporaryFileWrapper.__iter__%  s      IIDJ s   )r   r^   r7   N)TT)r,   r-   r.   r/   rv   r   r   r   r   rE   r'   r1   r2   r3   r4   r
   r   r     s-     	
2*
 r   r   Terrorsrt   c          
      sV  aaaaaa \        SSS4      w  oooo\        o\        P                  R 8X  d(   V'       d    V	'       d   S\        P                  ,          oRV 9  d   \
        P                  ! V4      pRoVVVVVV3R lp
 \
        P                  ! SWW2VV
R7      p \        VRV4      p\        VRV4      pSVn        \        VSWy4      #    TP                  4        h ; i   Se<   \        P                  R 8X  d   T'       d	   T	'       g   \        P                  ! S4       h ; i)r6   bNc                  s,   < \        SSSSS4      w  poV# r   )r_   )r   rO   r   r\   r7   r   r   r   s   * r
   openerZ"NamedTemporaryFile.<locals>.openerV  s    !#vvukJD	r   	bufferingnewlineencodingr   r   bufferraw)r   rC   r   r7   ZO_TEMPORARY_iotext_encodingrB   r   r   rE   rF   )moder   r   r   r   r   r   rs   r   rt   r   r^   r   r\   r7   r   s   &&&&fff&$$   @@@r
   r    r    .  s    6 (8'L$FFCE xx4F 
$$$X.D xxT '6%'	$$/C#uc*CCH(tVMM	JJLHHOJJts*   C& "-C C##C& &"D(	D(D(ZposixZcygwin	O_TMPFILEc          
      s  aaaaaa R V 9  d   \         P                  ! V4      p\        SSS4      w  oooo\        o\        '       dI   RoVVV3R lp \         P
                  ! SWW2WxR7      p	\        V	RV	4      p
\        V
RV
4      p
SV
n        V	# RoVVVVVV3R lp\         P
                  ! SWW2VVR7      p	\        V	RV	4      p
\        V
RV
4      p
SV
n        V	#   \         d    Rs LZ\         d     Lfi ; i)r   Nc                  s   < S\         P                  ,          \         P                  ( ,          p\         P                  ! SVR 4      oS# )r>   )r   r   O_CREATrB   )r   Zflags2r   rO   r\   s   * r
   r   TemporaryFile.<locals>.opener  s3    #--/CKK<?XXc651	r   r   r   r   Fc                  s   < \        SSSSS4      w  op \        P                  ! V4       S#   \         d   p\        P                  ! S4       h R p?ii ; ir   )r_   r   rF   ZBaseExceptionrE   )	r   r7   Zer   rO   r\   r   r   r   s	   *  r
   r   r     sQ    %c665+NHB

4  I ! 		"s   - AAA)
r   r   r   rC   _O_TMPFILE_WORKSrB   r   r7   IsADirectoryErrorr   )r   r   r   r   r   r   r   r   r   r^   r   rO   r\   r   s   &&&&fff$   @@@r
   TemporaryFiler   w  s   $ d?((2H+;FFC+P([B
xxT(/'-> dHd3c5#.& 	 	 xxT '6%' dHd+c5#&E % ) $)   s   <C C7*C73C76C7c                   sT  a  ] tR tRt o RtR&RR/R llt]! ]P                  4      t	R t
R tR tR	 tR
 tR tR t]R 4       t]R 4       t]R 4       tR tR tR t]R 4       t]R 4       t]R 4       tR tR tR tR tR tR t R t!R t"R t#R t$R'R  lt%R! t&R" t'R# t(R$ t)R%t*V t+R# )(r   i  FNr   c	               s    R V9   d   \         P                  ! 4       V n        MG\         P                  ! V4      p\         P                  ! \         P                  ! 4       WIVR7      V n        Wn        RV n        RVRVRVRVRVRVR	VR
V	/V n        R# )r   )r   r   r   Fr   r   r   r   r   r   r   r   N)r   ZBytesIO_filer   ZTextIOWrapper	_max_size_rolled_TemporaryFileArgs)
r"   max_sizer   r   r   r   r   r   r   r   s
   &&&&&&&&&$r
   rv   ZSpooledTemporaryFile.__init__  s     $;DJ((2H**3;;=%-$+-DJ "#)4i#+VXv#-xG#(#x#Ar   c                s    V P                   '       d   R # V P                  pV'       d*   VP                  4       V8  d   V P                  4        R # R # R # r   )r   r   tellrollover)r"   r^   r   s   && r
   _checkZSpooledTemporaryFile._check  s6    <<<>>		h.MMO /8r   c                s   V P                   '       d   R # V P                  p\        R/ V P                  B ;q n        V =VP	                  4       p\        VR4      '       d9   VP                  P                  VP                  4       P                  4       4       MVP                  VP                  4       4       VP                  V^ 4       RV n         R # )Nr   Tr%   )r   r   r   r   r   r   r   rD   detachZgetvalueseek)r"   r^   ZnewfileZposs   &   r
   r   ZSpooledTemporaryFile.rollover  s    <<<zz,Gt/F/FGG*#iik7H%%NN  !7!7!9:MM$--/*S!r   c                sT    V P                   P                  '       d   \        R 4      hV # )z%Cannot enter context with closed file)r   closedZ
ValueErrorr&   r	   r
   r   ZSpooledTemporaryFile.__enter__  s#    ::DEEr   c                r   r   r   rE   r"   r   r   r      &&&&r
   r   ZSpooledTemporaryFile.__exit__      

r   c                6    V P                   P                  4       # r   )r   r'   r&   r	   r
   r'   ZSpooledTemporaryFile.__iter__       zz""$$r   c                s    V P                   '       g@   \        P                  ! R P                  V 4      \        ^V R7       V P                  4        R# R# )zUnclosed file {!r})Z
stacklevelZsourceN)r   r{   r|   formatr}   rE   r&   r	   r
   r~   ZSpooledTemporaryFile.__del__  s>    {{{NN$++D1	 JJL r   c                r   r   r   r&   r	   r
   rE   ZSpooledTemporaryFile.close  r   r   c                .    V P                   P                  # r   )r   r   r&   r	   r
   r   ZSpooledTemporaryFile.closed      zz   r   c                r   r   )r   r   r&   r	   r
   r   ZSpooledTemporaryFile.encoding      zz"""r   c                r   r   )r   r   r&   r	   r
   r   ZSpooledTemporaryFile.errors  r   r   c                sV    V P                  4        V P                  P                  4       # r   )r   r   filenor&   r	   r
   r   ZSpooledTemporaryFile.fileno  s    zz  ""r   c                r   r   )r   flushr&   r	   r
   r   ZSpooledTemporaryFile.flush   r   r   c                r   r   )r   isattyr&   r	   r
   r   ZSpooledTemporaryFile.isatty#      zz  ""r   c                sx     V P                   P                  #   \         d    T P                  R ,          u # i ; i)r   )r   r   r9   r   r&   r	   r
   r   ZSpooledTemporaryFile.mode&  s5    	3::??" 	3**622	3s    99c                sT     V P                   P                  #   \         d     R # i ; ir   )r   r7   r9   r&   r	   r
   r7   ZSpooledTemporaryFile.name-  s'    	::??" 		s    ''c                r   r   )r   newlinesr&   r	   r
   r   ZSpooledTemporaryFile.newlines4  r   r   c                r   r   )r   readabler&   r	   r
   r   ZSpooledTemporaryFile.readable8  r   r   c                6    V P                   P                  ! V!  # r   )r   readr"   r      &*r
   r   ZSpooledTemporaryFile.read;      zz%%r   c                r   r   )r   read1r   r   r
   r   ZSpooledTemporaryFile.read1>  s    zz&&r   c                8    V P                   P                  V4      # r   )r   readintor"   r      &&r
   r   ZSpooledTemporaryFile.readintoA  s    zz""1%%r   c                r   r   )r   	readinto1r   r   r
   r   ZSpooledTemporaryFile.readinto1D  s    zz##A&&r   c                r   r   )r   readliner   r   r
   r   ZSpooledTemporaryFile.readlineG  s    zz""D))r   c                r   r   )r   	readlinesr   r   r
   r   ZSpooledTemporaryFile.readlinesJ  s    zz##T**r   c                r   r   )r   seekabler&   r	   r
   r   ZSpooledTemporaryFile.seekableM  r   r   c                r   r   )r   r   r   r   r
   r   ZSpooledTemporaryFile.seekP  r   r   c                r   r   )r   r   r&   r	   r
   r   ZSpooledTemporaryFile.tellS  s    zz  r   c                s    Vf   V P                   P                  4       # WP                  8  d   V P                  4        V P                   P                  V4      # r   )r   truncater   r   )r"   Zsizer   r
   r   ZSpooledTemporaryFile.truncateV  sB    <::&&((nn$::&&t,,r   c                r   r   )r   writabler&   r	   r
   r   ZSpooledTemporaryFile.writable^  r   r   c                sb    V P                   pVP                  V4      pV P                  V4       V# r   )r   rD   r   )r"   Zsr^   Zrv   &&  r
   rD   ZSpooledTemporaryFile.writea  s)    zzZZ]D	r   c                s*   V P                   ^ 8X  g   V P                  '       d   V P                  P                  V4      # \	        V4      pV FC  pV P                  V4       V P                  '       g   K(  V P                  P                  V4      u # 	  R# )rb   N)r   r   r   
writelinesZiterrD   )r"   ZiterableZitr   r   r
   r   ZSpooledTemporaryFile.writelinesg  sh    >>Q$,,,::((22(^DJJt|||zz,,R00 r   c                r   r   )r   r   r&   r	   r
   r   ZSpooledTemporaryFile.detachq  r   r   )r   r   r   r   )rb   w+bNNNNNr   ),r,   r-   r.   r/   r   rv   classmethod_typesGenericAlias__class_getitem__r   r   r   r   r'   r~   rE   r0   r   r   r   r   r   r   r   r7   r   r   r   r   r   r   r   r   r   r   r   r   r   rD   r   r   r1   r2   r3   r4   r
   r   r     s(    
 GA?CA" $F$7$78*
% ! ! # # ! !## 3 3   # #%&'&'*+%&!-%1# #r   c                   s   a  ] tR tRt o RRR/R llt]RR l4       t]RR l4       tR tR	 t	R
 t
R t]! ]P                  4      tRtV tR# )r   iu  Nrs   Tc          	     s    \        WV4      V n        W@n        WPn        \        P
                  ! W P                  V P                  R P                  V 4      V P                  V P                  R7      V n        R# )zImplicitly cleaning up {!r})ru   ignore_errorsrs   N)	rp   r7   _ignore_cleanup_errors_delete_weakrefZfinalize_cleanupr   
_finalizer)r"   r   r   r   Zignore_cleanup_errorsrs   s   &&&&&$r
   rv   ZTemporaryDirectory.__init__  sX    FC0	&;#"++--6==dC55dllLr   c                sP   a aaa V VVV3R  lp\         P                  ! SVR7       R# )c                 s  < \        V\        4      '       do   S'       d   VS8X  d   S'       d   R # h  VS8w  d)   \        \        P                  P                  V4      4       \        V4        \        P                  ! V4       R # \        V\        4      '       d   R # S'       g   h R #   \         d    SP                  TSR7        R # \         dr    \        P                  P                  T4      '       d&   \        P                  P                  T4      '       d   S'       d    R # h SP                  TSTS8H  R7        R # i ; i  \         d     R # i ; i)Nr   )r   repeated)r   rH   re   r   r8   r<   rF   r   _rmtreerI   Z
isjunctionrL   )r`   r8   r   clsr   r7   r   s   &&&r
   onexcZ)TemporaryDirectory._rmtree.<locals>.onexc  s   #//$t|#CHH$4$4T$:;%=

4(& C!233$ %+ - GDF* =  #xx~~d33sxx7J7J47P7P, &!D.2dl $ == ) sY   :E .B) )EE 
E%E9$EE&E )EE EE EE)r   N)_shutilZrmtree)r   r7   r   r   r   s   ffff r
   r   ZTemporaryDirectory._rmtree  s    $	 $	L 	t5)r   c                st    V'       d0   V P                  WR 7       \        P                  ! V\        4       R# R# r   N)r   r{   r|   r}   )r   r7   ru   r   rs   r   r
   r   ZTemporaryDirectory._cleanup  s&    KKK:NN<9 r   c                sb    R P                  V P                  P                  V P                  4      # )z	<{} {!r}>)r   Z	__class__r,   r7   r&   r	   r
   r   ZTemporaryDirectory.__repr__  s#    !!$.."9"9499EEr   c                s    V P                   # r   )r7   r&   r	   r
   r   ZTemporaryDirectory.__enter__  s    yyr   c                sN    V P                   '       d   V P                  4        R # R # r   )r   rz   r   r   r
   r   ZTemporaryDirectory.__exit__  s    <<<LLN r   c                s    V P                   P                  4       '       g0   \        P                  P	                  V P
                  4      '       d*   V P                  V P
                  V P                  R 7       R# R# r   )r   r   r   r8   Zexistsr7   r   r   r&   r	   r
   rz   ZTemporaryDirectory.cleanup  sK    ??!!##sxxtyy'A'ALL$2M2MLN (Br   )r   r   r   r7   NNNF)FF)FT)r,   r-   r.   r/   rv   r   r   r   r   r   r   rz   r   r   r   r1   r2   r3   r4   r
   r   r   u  sf     (L8<L '* '*R : :
FO $F$7$78r   )r    r   r   r   ro   rp   rq   r   rh   r   r   rj   r   r   r   )NNN)r   r   NNNNNT)r   r   NNNNN)BZ__all__Z	functoolsr   Zwarningsr{   Zior   Zosr   Zshutilr   ZerrnorM   Zrandomr   r    ZsysrY   Ztypesr   Zweakrefr   Z_threadZallocate_lockZ_allocate_lockZO_RDWRr   ZO_EXCLrn   r   r   rC   r   r   r   rS   r   r   r   r   r=   rP   rR   rV   r_   ra   re   rh   rj   r   rk   r   r   ro   rp   rq   rr   r   r    r7   Zplatformr   r   ZIOBaser   r   r%   r   r
   <module>r      s  4       $    &&**s{{*SZZ7
3s~~%O 
3
cll"N
3	kkGG  
:,$? ?06+%Z A:2"" 
''$CN&FP X4 @@3? 3?lE EN<8<< (,<| 88w$--83 'M sK0I*.IVp#3:: p#f\9 \9r   