QfZ ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlm Z ddl Z ddlZgdZ ddlZdZej(dvZer@ddlZddlmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(ejSgdnYerCdd l*m+Z,ejZZ.ej^Z0ejbZ2ejfZ4ejjZ6n dZ,dZ.dZ0dZ2dZ4dZ6ddl7Z7ddl8Z8Gd d e9Z:Gd d e:Z;Gdde:ZZ?n,e@e7ddZAeBe8dr e8jZDn e8jZDerdZFdZGngZFdZGdZHdZIdZJdZKdZLdZMddd ZNd!ZOddd"ZPGd#d$eQZRddddd%d&ZSd'ZTddd(d)ZUddd(d*ZVd+ZWeWZXdZYGd,d-ZZy#e$rdZYwxYw#e$rdZYwxYw).N) monotonic)PopenPIPESTDOUTcall check_callgetstatusoutput getoutput check_outputrunCalledProcessErrorDEVNULLSubprocessErrorTimeoutExpiredCompletedProcessTF>wasi emscripten)CREATE_NEW_CONSOLECREATE_NEW_PROCESS_GROUPSTD_INPUT_HANDLESTD_OUTPUT_HANDLESTD_ERROR_HANDLESW_HIDESTARTF_USESTDHANDLESSTARTF_USESHOWWINDOWABOVE_NORMAL_PRIORITY_CLASSBELOW_NORMAL_PRIORITY_CLASSHIGH_PRIORITY_CLASSIDLE_PRIORITY_CLASSNORMAL_PRIORITY_CLASSREALTIME_PRIORITY_CLASSCREATE_NO_WINDOWDETACHED_PROCESSCREATE_DEFAULT_ERROR_MODECREATE_BREAKAWAY_FROM_JOB)rrrrrrrr STARTUPINFOrrrrr r!r"r#r$r%) fork_execc eZdZy)rN)__name__ __module__ __qualname__1/opt/alt/python312/lib64/python3.12/subprocess.pyrr{sr-rcPeZdZ ddZdZedZejdZy)r Nc<||_||_||_||_yN) returncodecmdoutputstderr)selfr2r3r4r5s r.__init__zCalledProcessError.__init__s$  r-c&|jr@|jdkr1d|jdtj|j dSd|j|jfzS#t$rd|j|j fzcYSwxYw)Nr Command 'z ' died with .z)Command '%s' died with unknown signal %d.z.Command '%s' returned non-zero exit status %d.)r2r3signalSignals ValueErrorr6s r.__str__zCalledProcessError.__str__s ??t2 4&..$//1A"BDD DHHdooG// /  4B4??"2F444 4s0A((%BBc |jSr1r4r>s r.stdoutzCalledProcessError.stdouts9{{r-c||_yr1rAr6values r.rBzCalledProcessError.stdout  r-NNr)r*r+r7r?propertyrBsetterr,r-r.r r ~s=  / ]]r-r cPeZdZ ddZdZedZejdZy)rNc<||_||_||_||_yr1)r3timeoutr4r5)r6r3rMr4r5s r.r7zTimeoutExpired.__init__s   r-c<d|jd|jdS)Nr9z' timed out after z seconds)r3rMr>s r.r?zTimeoutExpired.__str__s4<<) *r-c|jSr1rAr>s r.rBzTimeoutExpired.stdouts {{r-c||_yr1rArDs r.rBzTimeoutExpired.stdoutrFr-rGrHr,r-r.rrs=  * ]]r-rc(eZdZddddddddZdZy)r&rNdwFlags hStdInput hStdOutput hStdError wShowWindowlpAttributeListcd||_||_||_||_||_|xsdgi|_y)N handle_listrR)r6rSrTrUrVrWrXs r.r7zSTARTUPINFO.__init__s8"DL&DN(DO&DN*D #2#I}b6ID r-c|jj}d|vrt|d|d<t|j|j |j |j|j|S)NrZrR) rXcopylistr&rSrTrUrVrW)r6 attr_lists r.r\zSTARTUPINFO.copysf,,113I )+/ -0H+I -(t||)-*.//)-+/+;+;/8 : :r-)r)r*r+r7r\r,r-r.r&r&s&'4D#D J :r-r&c>eZdZdZej fdZdZdZeZ y)HandleFc<|jsd|_||yy)NT)closed)r6 CloseHandles r.Closez Handle.Closes;;" D!r-cT|jsd|_t|Std)NTzalready closed)rbintr=r>s r.Detachz Handle.Detachs&;;" 4y -. .r-cJd|jjt|fzS)Nz%s(%d)) __class__r)rfr>s r.__repr__zHandle.__repr__s t~~66D BB Br-N) r)r*r+rb_winapircrdrgrj__del__r,r-r.r`r`s'$+$7$7 "  /  Cr-r`PIPE_BUFi PollSelectorcyr1r,r,r-r._cleanuprps r-ctytddD];}|jtj}|& tj |=y#t $rYJwxYw)N _deadstate)_active_internal_pollsysmaxsizeremover=)instress r.rprp s[ ? AJD%%%=CNN4(  "sA AAcx g}tjj}|dkDr|jdd|zz|S)Nr-O)rvflagsoptimizeappend)argsrEs r."_optim_args_from_interpreter_flagsr"s<+ D II  E qy C#+%& Kr-c ddddddd}t}|jD]<\}}ttj|}|dkDs&|j d ||zz>tjj r|j d ntjjr|j d tjjr|j d tjjr|j d tjdd}ttdi}tjj}tjj}|dkDr|jdn|r|jd|r|jd|D]}|j d|z|r|jddD]-}||vs||} | dur|} n|d| } |jd| f/|S)NdBSvbq)debugdont_write_bytecodeno_siteverbose bytes_warningquietrrz-Iz-Ez-sz-P _xoptionszerror::BytesWarningzdefault::BytesWarningdefaultz-W)-Xdev) faulthandler tracemalloc importtimefrozen_modules showrefcountutf8T=r)ritemsgetattrrvrrisolatedignore_environment no_user_site safe_path warnoptionsrdev_moderxextend) flag_opt_maprflagoptrwarnoptsxoptionsrrrEargs r._args_from_interpreter_flagsr,sA # L . /D!'') c CIIt $ q5 KKcAg &*  yy D 99 ' ' KK  99 ! ! KK  99   KK q!HsK,HII++Myy!!Hq-. /0 " D3J M": (?SME}!$e, KKs $: Kr-ctjjrtj}|jj }d}|j x}r.|jj |k7rn|dz }|j x}r.tjdt|tjjrytjS)Nrz"'encoding' argument not specified.zutf-8) rvrwarn_default_encoding _getframef_code co_filenamef_backwarningswarnEncodingWarning utf8_modelocale getencoding)ffilename stacklevels r._text_encodingris yy&& MMO88'' 88mamxx##x/ !OJ88mam  :%z 3 yy!!##r-rMc t|i|5} |j|cdddS#|jxYw#1swYyxYw)Nr)rwaitkill)rM popenargskwargsps r.rr}sQ  $V $ 66'6*  FFH  % $sA*=AA ch t|i|}|r$|jd}||d}t||y)Nrr)rgetr )rrretcoder3s r.rrsGI((Gjj  ;A,C #.. r-c dD]}||vst|dd|vrS|dN|jds3|jds"|jds|jdrd}nd }||d<t|t|d d |jS) N)rBcheckz- argument not allowed, it will be overridden.inputuniversal_newlinestextencodingerrorsr-T)rBrMr)r=rr rrB)rMrrkwemptys r.r r s!D" <t#PQR R"&VG_4 ::* +vzz&/AVZZPZE[::h'EEw  $t   r-cFeZdZ ddZdZeejZdZ y)rNc<||_||_||_||_yr1)rr2rBr5)r6rr2rBr5s r.r7zCompletedProcess.__init__s $  r-cdj|jdj|jg}|j*|j dj|j|j *|j dj|j djt |jdj|S)Nz args={!r}zreturncode={!r}z stdout={!r}z stderr={!r}z{}({})z, ) formatrr2rBrr5typer)join)r6rs r.rjzCompletedProcess.__repr__s""499-!((9; ;; " KK ,,T[[9 : ;; " KK ,,T[[9 :tDz22DIIdODDr-c |jr6t|j|j|j|jyr1)r2r rrBr5r>s r.check_returncodez!CompletedProcess.check_returncodes7D ??$T__dii%)[[2 2 r-rG) r)r*r+r7rj classmethodtypes GenericAlias__class_getitem__rr,r-r.rrs*  E$E$6$672r-r)rcapture_outputrMrc |%|jd tdt|d<|r?|jd|jd tdt|d<t|d<t|i|5} |j ||\}}|j} |r| rt| |j||dddtj S#t $rJ} |j tr|j \| _| _ |jd} ~ w|j xYw#1swYxYw)Nstdinz/stdin and input arguments may not both be used.rBr5z@stdout and stderr arguments may not be used with capture_output.rr4r5)rr=rr communicaterr _mswindowsrBr5rpollr rr) rrrMrrrprocessrBr5excrs r.r r sO8  ::g  *NO Ow ::h  +vzz(/C/O45 5xx  $V $ $000HNFF&,,. W$Wgll,26C C/ %2 GLL'66 BB-  LLN *1)<)<)>& CJ     LLN ) % $s15E7C -E D>#AD((D>>EE cD g}d}ttj|D]}g}|r|jdd|vxs d|vxs| }|r|jd|D]x}|dk(r|j||dk(r4|jdt |zdzg}|jdS|r|j |g}|j|z|r|j ||s|j ||jddj |S) NF  "\rz\"r)maposfsdecoderlenrr)seqresult needquoterbs_bufcs r. list2cmdliner@s:FI2;;$  MM# CZ BCyDCRy T> !yy==!s+ AAAc& t|||dS)Nrr)r )r3rrs r.r r s 3& A! DDr-c tsttdsytjdvry tj d}|j d}t|dk7rt|d }ttt|dj d }tjd k(r |d k(r|d k\ryy#tttf$rYywxYw)N posix_spawnF)darwinsunos5TCS_GNU_LIBC_VERSIONr)maxsplitrrr:linuxglibc)r)rhasattrrrvplatformconfstrsplitrr=tuplerrfAttributeErrorOSError)verpartslibcversions r._use_posix_spawnrs ]3 ||++ jj./ 1 % u:? QxCq!456 <<7 "tw7g;M  J 0     sBB77C Cc 8eZdZ dZ d,dddddddddd dZdZeejZ e dZ e jdZ d Z d Zd Zej"ej&fd Zd ZdZd-dZdZdZ d.dZd/dZdZej<dZe rDdZ!dZ"dZ#dZ$de%jLe%jNe%jPfdZ)dZ*dZ+dZ,dZ-dZ.e.Z/yd Z!d!Z0d"Z$e1e2e3fd#Z4de5e6e7jpfd$Z)d%Z9d&Z*d'Z,d(Z:d)Z-d*Z.d+Z/y)0rFr{N) usergroup extra_groupsrrrumaskpipesize process_groupc  ts+ttjtj dt tj|_ d|_ d|_ |d}t|ts td|d}t|ts tdtr |Ht!d|r|st#j$dt&d}| t!d |d k7r t!d ||_d|_d|_d|_d|_d|_||_||_||_|$| "t;| t;|k7r t=d |xs |xs|xs| |_|j>r|tAx|_}d |_!d|_"|j>r |dk(rd}d}nd}|d}d}|tGtHds t!dt|tJr! d dl&}|jQ|jR}n6t|tr|}n#tdjUtW||d krt!d|d}|tGtHds t!dt|tJr t!dg}|D]}t|tJr0 d dl&}|jY|jQ|jRCt|tr|jY|etdjUtW||D]} | d ks t!d| d}!|}tGtHds t!dt|tJr! d dl-}"|"j]|j^}!nt|tr|}!n td|!d krt!d|!|ja|||\}#}$}%}&}'}(tr{|$dk7r$tcjd|$jgd }$|%dk7r$tcjd|%jgd }%|'dk7r$tcjd|'jgd }' |$dk7rQtijj|$d||_|j>r)tijl|j*d|||_|%dk7rOtijj|%d ||_|j>r'tijl|j,||!|_|'dk7rOtijj|'d ||_|j>r'tijl|j.||!|_|jo|||||| | | || |#|$|%|&|'|(||||!|||y#tN$r t!dwxYw#tN$r t!dwxYw#tN$r t!dwxYw#tqd|j*|j,|j.fD]"}) |)js#t$rY wxYw|jDsg}*|ttk(r|*jY|#|ttk(r|*jY|&|ttk(r|*jY|(tG|d"r|*jY|jv|*D]N}+ tr!t|+txr|+j{ntIjr|+A#t$rYLwxYwxYw)#Nz does not support processes.Fr{zbufsize must be an integerzpipesize must be an integerz0preexec_fn is not supported on Windows platformszpass_fds overriding close_fds.Tz2startupinfo is only supported on Windows platformsrz4creationflags is only supported on Windows platformszlCannot disambiguate when both text and universal_newlines are supplied but different. Pass one or the other.g?rsetregidz>The 'group' parameter is not supported on the current platformzHThe group parameter cannot be a string on systems without the grp modulez,Group must be a string or an integer, not {}z!Group ID cannot be negative, got setgroupszEThe 'extra_groups' parameter is not supported on the current platformz#Groups must be a list, not a stringzIItems in extra_groups cannot be strings on systems without the grp modulez9Items in extra_groups must be a string or integer, not {}setreuidz=The 'user' parameter is not supported on the current platformzGThe user parameter cannot be a string on systems without the pwd modulez#User must be a string or an integerz User ID cannot be negative, got wb) write_throughline_bufferingrrrbr_devnull)>_can_fork_execrerrnoENOTSUPrvr rp threadingLock _waitpid_lock_input_communication_started isinstancerf TypeErrorrr=rrRuntimeWarningrrrBr5pidr2rrrboolr text_moder_sigint_wait_secs_closed_child_pipe_fdsr rstrgrp ImportErrorgetgrnamgr_gidrrrpwdgetpwnampw_uid _get_handlesmsvcrtopen_osfhandlergioopen TextIOWrapper_execute_childfiltercloserr$r`rd),r6rbufsize executablerrBr5 preexec_fn close_fdsrcwdenvr startupinfo creationflagsrestore_signalsstart_new_sessionpass_fdsrrrrrrrrrr"gidr6gids extra_group gid_checkuidr:p2creadp2cwritec2preadc2pwriteerrreaderrwriterto_closefds, r.r7zPopen.__init__'s ) #,,/KL   '^^- &+# ?G'3'89 9  H(C(9: : % "-..  >O & "-..! "-..           !3!?'(DJ6!#FG G"IVItI7I >>h.'5'7 7DMH "&&+# >>!|!%!&  M  2z* "455E3'J ll5)00E3' N!'U !466Qw #DSE!JKK  #2{+ "EFFL#. !FGGD+ k3/7" KK [ 9 @ @A S1KK ,#%9%+VD,=%>@@ ,&" q=$'H %TUU"  2z* "899D#&Jll4(//D#& EFFQw #CC5!IJJ&#//vvF ( ( ( 2~!001BAF"} //0@!D"} //0@!D6 2~WWXtW= >>!#!1!1$**D+9%-f">DJ"} gggtW= >>"$"2"24;;%-f#>DK"} gggtW= >>"$"2"24;;%-f#>DK   j*i (#s +]E ' ' ' / #T3 1= Bo#J$&IJJJ8'7(*67778#J$&IJJJP D4::t{{DKK"HIGGIJ ..D=OOG,T>OOH-T>OOH-4,OODMM2"B%*R*@HHJHHRL" # sz#U0VV D%V80VV V582[#+W<;[#< X[#XB [#<[[# [[#[[#cd|jjd|jd|jd}t |dkDr|dddz}|S)NPLz...>)rir)r2rr)r6obj_reprs r.rjzPopen.__repr__(s]''()??+7499-q B  x=2 }v-Hr-c|jSr1)r2r>s r.rzPopen.universal_newlines3s~~r-c$t||_yr1)r1r2)r6rs r.rzPopen.universal_newlines9s01r-cj|j||}|jddjddS)Nz r )decodereplace)r6rrrs r._translate_newlineszPopen._translate_newlines=s0{{8V,||FD)11$==r-c|Sr1r,r>s r. __enter__zPopen.__enter__As r-c|jr|jj|jr|jj |jr|jj|tk(r<|j dkDr% |j |j d|_yd|_y|jy#t$r Yd|_ywxYw#|tk(rF|j dkDr- |j |j n#t$rYnwxYwd|_Yy|jwxYw)Nrr) rBrEr5rKeyboardInterruptr3_waitrr)r6exc_typerE tracebacks r.__exit__zPopen.__exit__Ds ;; KK    ;; KK    zz   ",,))A- 4+A+A B*+&*+& IIK *)*&,,))A- 4+A+A B))*& IIKsH&C C CC E:DE D# E"D## E0Ec|jsy|j|d|jzt||j ||jt t j |yyy)Nzsubprocess %s is still running)sourcerr)_child_createdr2r0ResourceWarningrurtr)r6_maxsize_warns r.rlz Popen.__del__`si""  ?? " 2TXX=!$ 0 x0 ?? "w': NN4 (; "r-ct|ds7tjtjtj|_|j SNr$)r rrAdevnullO_RDWRr$r>s r. _get_devnullzPopen._get_devnullos0tZ(GGBJJ :DM}}r-cr|r |jj| |jj y#t$rY't$r)}|jtj k(rnYd}~Sd}~wwxYw#t$rYyt$r)}|jtj k(rnYd}~yd}~wwxYwr1)rwriteBrokenPipeErrorrr&EINVALrE)r6rrs r. _stdin_writezPopen._stdin_writets     '  JJ   #  99 ,     yyELL( s8;A: A7A7A22A7: B6B6 B11B6c |jr |r td||js|j|j|jgj ddk\rd}d}|jr|j |n|jr5|jj}|jjn@|jr4|jj}|jj|j||fS|t|z}nd} |j|||\}} d|_|j|j|}||fS#t$r_|&t|j|j|}n |j}d|_ |j!|#t"$rYwxYwwxYw#d|_wxYw)Nz.Cannot send input after starting communicationrrrT)r,r=rrBr5countrreadrEr_time _communicaternminr3_remaining_timeror)r6rrMrBr5endtimesigint_timeoutstss r.rzPopen.communicates "  & &5MN N OD$?$? ZZdkk 2 8 8 >! CFFzz!!%())+ !!#))+ !!# IIK:7"'G+ 3!%!2!25'7!K"/3+))D$8$8$A)BC)% &%()?)?)-)=)=g)F&HN&*%;%;N)*&JJ~J6&  /3+s=(E++AG0GG G GGGG Gc$ |jSr1)rur>s r.rz Popen.polls ""$$r-c$ |y|tz Sr1)r)r6rs r.rzPopen._remaining_timesC ?UW$ $r-c |y|s t|kDrDt|j||rdj|nd|rdj|dy)Nr-r)rrrr)r6r orig_timeout stdout_seq stderr_seqskip_check_and_raises r._check_timeoutzPopen._check_timeoutsg@ ?  57W#4 II|3=388J/43=388J/I IDHI I$5r-c | t|z} |j|S#t$r_|&t|j|j }n |j}d|_ |j|#t $rYwxYwwxYw)Nrr)rrornrr3rr)r6rMrrs r.rz Popen.waitsK  g'G ::g:. .   "!$T%;%;%)%9%9'%B"D"&!7!7%&D "  > 2 "    s.$AB )A<;B < BB BB ct|dd}tj5}tra|dk7r|j |j |dk7r|j |j |dk7r|j |j n|dk7r*|dk7r%||k7r |j t j||dk7r*|dk7r%||k7r |j t j||dk7r*|dk7r%||k7r |j t j|| |j t j|dddd|_y#1swYd|_yxYw)Nr$r{T) r contextlib ExitStackrcallbackrdrrEr4) r6rVrWrXrYrZr[ devnull_fdstacks r._close_pipe_fdszPopen._close_pipe_fdss T:t4  ! ! #ub=NN7==1r>NN8>>2r>NN8>>2b=X^:8MNN288W5r>gmJ8NNN288X6r>gmJ8NNN288X6%rxx4#$('+#)$('+#s DE  Ec# K g} |y#t|dr|j|j|`|D]N} tr!t |t r|j ntj|A#t$rYLwxYwxYwwrz) r rr$rr-r`rdrrEr)r6r\r]s r._on_error_fd_closerzPopen._on_error_fd_closersQ N tZ( .M!jV&<    s<B B0B  get_osfhandler}r-rffileno_make_inheritablerrr) r6rrBr5rVrWrXrYrZr[ err_close_fds_s r.r=zPopen._get_handles7s }FN/ & GX & GX & GX))+}=%2273K3KLG%,%7%7a%@ "(/%,,W5++A.d](/(:(:4(C%GX(.w9IXG!(('8)<=g%$2243D3D3FGGs+$2259G%225<<>BG009>&33G4M4MNH'&-&8&8q&A 8#)(#3%,,X6++A.t^(/(:(:4(C%GX(.w9IXG!(('8)<=w&%33D4E4E4GHH,%33F;H &33FMMODH11(;>&33G4L4LMH'&-&8&8q&A 8#)(#3%,,X6++A.t^(/(:(:4(C%GX(.w9IXG!(('8)<=v%'Hw&%33D4E4E4GHH,%33F;H &33FMMODH11(;{,~XXX' ',+s OPP c tjtj|tjddtj}t |S)Nrr)rkDuplicateHandleGetCurrentProcessDUPLICATE_SAME_ACCESSr`)r6handlehs r.rzPopen._make_inheritablesH D''))+V))+Q--/A!9 r-c t|Dchc]2}|dzdk7s&tj|tjk7r|4c}Scc}w)N)r]rk GetFileTypeFILE_TYPE_CHAR)r6rZrs r._filter_handle_listzPopen._filter_handle_lists\ A k4kF"SLC/#//7#223 k45 54s7A c  t|trnit|tr| r tdt |g}n?t|t j r| r tdt |g}n t |}|t j|}| t}n|j}d| ||fv}|r8|xjtjzc_ | |_ ||_||_|j }t#|xr d|vxr|d}|s|r|r| ix}|_t%|j'dgx}|d<|r#|t)| t)|t)|gz }|j+||dd|r|st-j.dt0d}| r|xjtj2zc_ tj4|_|st j8j'd}|skt j8j'dd }t j:j=|d d }t j:j?|s tAd t j:j?|r|}n|}d jC||}|t j|}tEjFd|||| tjH||ddt)| | ||| \}}} }!|jK| | | |||d|_&tO||_(| |_)tjT|y#|jK| | | |||wxYw)Nz$bytes args is not allowed on Windows0path-like args is not allowed when shell is truer{rZz?startupinfo.lpAttributeList['handle_list'] overriding close_fdsFComSpec SystemRootrSystem32zcmd.exez:shell not found: neither %ComSpec% nor %SystemRoot% is setz {} /c "{}"subprocess.PopenT)+r-r5bytesr.rrPathLikerr&r\rSrkrrTrUrVrXr1r]rrfrrrr/rrrWenvironpathrisabsFileNotFoundErrorrrvaudit CreateProcessrrur`_handler0rc)"r6rrGrHrIrPrJrKrLrMrrVrWrXrYrZr[unused_restore_signals unused_gid unused_gids unused_uid unused_umaskunused_start_new_sessionunused_process_groupuse_std_handlesattribute_listhave_handle_listrZcomspec system_roothphtr0tids" r.rCzPopen._execute_childs6 7$$D%(#$JKK#TF+D"++.#%455#TF+#D)%[[4 ")m *..0  (H(EEO##w'C'CC#(/ %)1 &(0 %(88N#N%B$1^$C%B$2=$A C   O !)CEEN[%@++M2>?@ n];#CL#h-X#OOK!%!9!9+!F A$ '=>LN !&I##w'C'CC#*1// '! !jjnnY7G"&(jjnn\2&F "$'',,{J "R!ww}}W5"34p"qqww}}W-%, (G#**GT:kk#& II(*dC E 8#*#8#8T)-t),]);)6),),)4$6 BS$$Wh%,h%,h8 #'D !":DLDH    #$$Wh%,h%,h8s ,MMc |j-||jd|k(r||j|_|jSNr)r2r)r6rs_WaitForSingleObject_WAIT_OBJECT_0_GetExitCodeProcesss r.ruzPopen._internal_polls@ &' a8NJ&9$,,&GDO?? "r-c` |tj}n|dkrd}nt|dz}|jmtj|j |}|tj k(rt|j|tj|j |_|jS)Nri) rkINFINITErfr2WaitForSingleObjectr WAIT_TIMEOUTrrGetExitCodeProcess)r6rMtimeout_millisrs r.roz Popen._wait,s ?!(!1!1A!"!$Wt^!4& 44T\\5CEW111(G<<")"<"s MM"'') $ HHJr-c|jrzt|dsng|_tj|j |j|jf|_d|j _|j j|jrzt|dsng|_ tj|j |j|jf|_ d|j_|jj|jr|j||jZ|j j|j||j j!rt#|j$||jZ|jj|j||jj!rt#|j$|d}d}|jr&|j}|jj'|jr&|j}|jj'|r|dnd}|r|dnd}||fS)N _stdout_buff)targetrT _stderr_buffr)rBr rr(Threadr stdout_threaddaemonstartr5r stderr_threadrrrris_aliverrrE)r6rrrrBr5s r.rzPopen._communicateCs{{74#@$&!!((0B0B/3{{Dt^(* %GX!(('8)<=}}q(WUN-K He.@.@$--Pw&#002H,%H &}}H>t^(* %GX!(('8)<=}}q(WUN-K He.@.@$--Pv%2~#+#&>>#8#8#:w&#002H,%H &}}Hc,fXXX' 'g,+s I7J((J1c  |tj}i} |r3g} dD]'} tt| d}|| j |)| | d<g}||| fD])}|dk7s |j tj |f+|df|df| dffD]-\}}|dk7s |j tj ||f/|r|| d<tj|||fi| |_d|_ |j||||| | y) N)SIGPIPESIGXFZSIGXFSZ setsigdefr{rrr file_actionsT) rrrr;rPOSIX_SPAWN_CLOSEPOSIX_SPAWN_DUP2rr0rur)r6rrGrKrNrVrWrXrYrZr[rsigsetsignamesignumrr]fd2s r. _posix_spawnzPopen._posix_spawns& :{jjF?G$VWd;F) f- @'-{#L'28 '')=)=r(BC3! 1 1 C 8 '')<)z'Popen._execute_child..Xs10>'<GGLLS)9:F'')'7'7'<0>+>#&h-KOOM2) /%uVC[4I-J'K#Xw#X(-+->)3c5&  4DH+/D'HH]+$$Wh%,h%,h8 ){ 77<7D D(L3|#4u#< &!zz$((A6HCdhh//4*-++ 7(..tQ77NIw &nn.G (/ ."7"7"@'()$2G< #Ir 2I.0"$'*  H,"$'+ '6  A~"$++i"8#/29g|TT29gFF*733U%HH]+ &)"7%7N $ICJJ"' "57G7sE9D9P?2A#Q/AQ3 &R?QQQ03 Q?>Q?'R,+R,cN ||r|| |_y|||_yr1)r2)r6r_waitstatus_to_exitcode _WIFSTOPPED _WSTOPSIGs r.r!zPopen._handle_exitstatuss+ M3#,S>/"9#">r-c4 |j|jjdsy |j&|j|jjS||j|\}}||jk(r|j ||jj|jS|jS#t $r*}|||_n|j|k(rd|_Yd}~`d}~wwxYw#|jjwxYw)NFr)r2r*acquirereleaser0r!rr&)r6rs_waitpid_WNOHANG_ECHILDr0res r.ruzPopen._internal_polls &))11%8 12#&&..0 ((;HCdhh//4&&..0?? "4?? " ,!-*4G+ +, ,&&..0s/C6C C8 C3.C;3C88C;;Dc tj|j|\}}||fS#t$r|j}d}Y||fSwxYwr)rr r0r")r6 wait_flagsr0rs r. _try_waitzPopen._try_waitsY L ZZ*= c:  % hh:   s#*AAc |j |jS|6t|z}d} |jjdr |j' |jj |jS|j t j\}}||jk(r8|j| |jj |jS |jj |j|}|dkrt|j|t|dz|d}tj|&|jw|j5|j ddd|jS|j d\}}||jk(r|j|ddd|jw|jS#|jj wxYw#1swYAxYw)NgMb@?Frrg?)r2rr*r=r>rErWNOHANGr0r!rrrrtimesleep)r6rMrdelayr0r remainings r.roz Popen._waits =*&"'G+))11%8 9#: %!..668"?? "/*. )CJS#"dhh $ 7 7 < % ..668"?? "+ /!..668 $ 4 4W =I A~,TYY@@ 9c:EJJu%!$oo-++??6!9?? " &*^^A%6 c$((? 33C8,oo-?? "#!..668,+s% G"H c |jrD|js8 |jj|s |jj d}d}|jsQi|_|j rg|j |j <|jrg|j |j<|j r|j |j }|jr|j |j}|j||jrt|j}t5}|jr,|r*|j|jtj|j r@|j js*|j|j tj |jr@|jjs*|j|jtj |j#r|j%|}|&|dkr!|j'||||dt)d|j+|} |j'||||| D]o\} } | j,|jur|j.|j.t0z} |xj.t3j4| j6| z c_|j.t9|jk\s|j;| j,| j,j | j,|j |jfvst3j<| j6d} | s5|j;| j,| j,j |j | j,j?| r|j#rddd|jA|j%||djC|}|djC|}|jDrz|;|jG||j jH|j jJ}|;|jG||jjH|jjJ}||fS#t$rYwxYw#t$rYwxYw#t$r9|j;| j,| j,j YwxYw#1swY@xYw)NrT)rzN_check_timeout(..., skip_check_and_raise=True) failed to raise TimeoutExpired.irr-)&rr,flushrrE_fileobj2outputrBr5 _save_inputr+ memoryview_PopenSelectorregister selectors EVENT_WRITErb EVENT_READget_maprr RuntimeErrorselectfileobj _input_offset _PIPE_BUFrrr]r unregisterrrrrr2rjrr)r6rrrrBr5 input_viewselectorrMreadykeyeventschunkrs r.rzPopen._communicates>zz$"="=JJ$$& ((*FF..')$;;8:D((5;;8:D((5{{--dkk:{{--dkk:   U #{{' 4 !X::%%%djj)2G2GH;;t{{'9'9%%dkk93G3GH;;t{{'9'9%%dkk93G3GH&&("227;G*w{++G\,2FAE,G+>??%OOG4E''vvN (- V;;$**4$.t/A/A/3/A/AI/M%OE8 $ 2 2bhhsvvu6M M 2 $(#5#5T[[9I#I$,$7$7 $D$'KK$5$5$7 [[T[[$++,FF#%773665#9D#' ( 3 3CKK @ # 1 1 3 00=DDTJ%(-!&&("X IId227;I <!&)!&)~~%!55f6:kk6J6J6:kk6H6HJF%!55f6:kk6J6J6:kk6H6HJFF# #{' +l$34 ( 3 3CKK @ # 1 1 34="!saSS(8FT=:3S8-"T=AT=+BT= S%$S%( S54S58>T:6T=9T::T==Uc|jru|jhd|_||_|W|jrJ|jj |jj |jj |_yyyyyr)rr+rZr2encoderr)r6rs r.rOzPopen._save_inputtsnzzdkk1%&"# $"&++"4"4TZZ5H5H59ZZ5F5F#HDK*8$2zr-c |j|jy tj|j|y#t $rYywxYwr1)rr2rrr0ProcessLookupErrorrs r.rzPopen.send_signalsF /" IIK*  #&%  s A A  A cD |jtjyr1)rr;rr>s r.rzPopen.terminate    V^^ ,r-cD |jtjyr1)rr;SIGKILLr>s r.rz Popen.killrhr-)r{NNNNNTFNNNNrTFr,rG)Fr1);r)r*r+rur7rjrrrrrIrrJrjrlrrrvrwrrrlr}rrrrrrrrcontextmanagerrrr=rrrCrkr WAIT_OBJECT_0rrurorrrrrrr9r:r;r!r?r@r&ECHILDrErOr,r-r.rrs6nN4815,0EI129>  '+$Tt$b2#B$E$6$67  22>8 #{{(-- ! 2A H% %-2 I.+:&L '^  5} $~-1%,%@%@&44$+$>$> #" #$  0 $d G % = '@% 4Ng 4V8O+6)2 ?-18!5<< #F & #Rc $L H @ -  -r-r)[r#r&r@rrrHr;rvr(rrrrrrr7__all__r>rModuleNotFoundErrorr r%rkrrrrrrrrrrrrr r!r"r#r$r%r_posixsubprocessr'rr r?waitstatus_to_exitcoder9 WIFSTOPPEDr:WSTOPSIGr;rGr@rXrS Exceptionrr rr&rfr`rr[r rnrQSelectSelectorrtrprrrrrrrrr objectrr rr r rrrrr,r-r.rwsQ D #   DJ%;; OOOOO NN N O<::"$";";mm KK :: "&  'i&""J_8::., C0I y.)"//"11G G    :z$("" &&*2 j!2v!2J5$eCCLCR&*$@ $D E-d$%  {-{-e EJs#F=G =GG GG