Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
3 \ƒóã@s8dZddlZejdkZddlZddlZddlZddlZddlZddl Z ddl Z ddlm Z Gdd„de ƒZGdd„deƒZGd d „d eƒZer¶ddlZddlZddlZGd d „d ƒZnhddlZddlZddlZy ddlZWnek röddlZYnXeed dƒZeedƒ�rejZnejZddddddddddddd dgZ e�r˜ddlm!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(e j)ddddd d!d"d#d g ƒGd$d%„d%e*ƒZ+gZ,d&d'„Z-dZ0d+d,„Z1d-d.„Z2dd/œd0d„Z3d1d„Z4dd/œd2d„Z5Gd3d„de6ƒZ7ddd4d5œd6d„Z8d7d8„Z9d9d„Z:d:d„Z;e6ƒZ}|jtjd�}|dk rytj|ƒWqtk rJYqXqWdS)N)Ú _deadstate)Ú_activeÚ_internal_pollÚsysÚmaxsizeÚremover)ZinstÚresrrrÚ_cleanupËsrEééécCs*g}tjj}|dkr&|jdd|ƒ|S)zgReturn a list of command-line arguments reproducing the current optimization settings in sys.flags.rú-ÚO)rAÚflagsÚoptimizeÚappend)ÚargsrrrrÚ"_optim_args_from_interpreter_flagsßs rOcCsdddddddœ}tƒ}x:|jƒD].\}}ttj|ƒ}|dkr"|jd ||ƒq"Wtjjrh|jd ƒn$tjjrz|jd ƒtjjrŒ|jd ƒxtj D]}|jd |ƒq”Wttdiƒ}xDdD]<}||kr¼||}|dkrÞ|}n d||f}|j d|fƒq¼W|S)z}Return a list of command-line arguments reproducing the current settings in sys.flags, sys.warnoptions and sys._xoptions.ÚdÚBÚSÚvÚbÚq)ÚdebugÚdont_write_bytecodeÚno_siteÚverboseÚ bytes_warningÚquietrrIz-Iz-Ez-sz-WÚ _xoptionsÚ faulthandlerÚ tracemallocÚshowalloccountÚ showrefcountÚutf8Tz%s=%sz-X)r]r^r_r`ra) rOÚitemsÚgetattrrArKrMÚisolatedÚignore_environmentÚ no_user_siteÚ warnoptionsÚextend)Z flag_opt_maprNÚflagÚoptrSZxoptionsrÚargrrrÚ_args_from_interpreter_flagsés:       rl)rcOsFt||Ž�2}y |j|d�S|jƒ|jƒ‚YnXWdQRXdS)zÞRun command with arguments. Wait for command to complete or timeout, then return the returncode attribute. The arguments are the same as for the Popen constructor. Example: retcode = call(["ls", "-l"]) )rN)r!ÚwaitÚkill)rÚ popenargsÚkwargsÚprrrr$s  cOs6t||Ž}|r2|jdƒ}|dkr(|d}t||ƒ‚dS)aORun command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) rNNr)r$Úgetr )rorpÚretcoder rrrr%(s   cOsTd|krtdƒ‚d|kr<|ddkr<|jddƒr4dnd|d<t|t|d d œ|—ŽjS) a(Run command with arguments and return its output. If the exit code was non-zero it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute and output in the output attribute. The arguments are the same as for the Popen constructor. Example: >>> check_output(["ls", "-l", "/dev/null"]) b'crw-rw-rw- 1 root root 1, 3 Oct 18 2007 /dev/null\n' The stdout argument is not allowed as it is used internally. To capture standard error in the result, use stderr=STDOUT. >>> check_output(["/bin/sh", "-c", ... "ls -l non_existent_file ; exit 0"], ... stderr=STDOUT) b'ls: non_existent_file: No such file or directory\n' There is an additional optional argument, "input", allowing you to pass a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it too will be used internally. Example: >>> check_output(["sed", "-e", "s/foo/bar/"], ... input=b"when in the course of fooman events\n") b'when in the course of barman events\n' If universal_newlines=True is passed, the "input" argument must be a string and the return value will be a string rather than bytes. rz3stdout argument not allowed, it will be overridden.ÚinputNÚuniversal_newlinesFÚóT)rrÚcheck)rrrr)r"r)rrorprrrr(;s c@s*eZdZdZd dd„Zdd„Zdd„ZdS) r+aEA process that has finished running. This is returned by run(). Attributes: args: The list or str args passed to run(). returncode: The exit code of the process, negative for signals. stdout: The standard output (None if not captured). stderr: The standard error (None if not captured). NcCs||_||_||_||_dS)N)rNr rr )rrNr rr rrrrrszCompletedProcess.__init__cCshdj|jƒdj|jƒg}|jdk r4|jdj|jƒƒ|jdk rP|jdj|jƒƒdjt|ƒjdj|ƒƒS)Nz args={!r}zreturncode={!r}z stdout={!r}z stderr={!r}z{}({})z, ) ÚformatrNr rrMr ÚtyperÚjoin)rrNrrrr;xs   zCompletedProcess.__repr__cCs |jrt|j|j|j|jƒ‚dS)z6Raise CalledProcessError if the exit code is non-zero.N)r r rNrr )rrrrÚcheck_returncode�sz!CompletedProcess.check_returncode)NN)rrrrrr;r|rrrrr+gs   F)rtrrxc OsÖ|dk r d|krtdƒ‚t|d<t||Ž�–}y|j||d�\}}WnVtk r||jƒ|jƒ\}}t|j|||d�‚Yn|jƒ|jƒ‚YnX|jƒ}|r¼|r¼t ||j||d�‚WdQRXt |j|||ƒS)afRun command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. The other arguments are the same as for the Popen constructor. If universal_newlines=True is passed, the "input" argument must be a string and stdout/stderr in the returned object will be strings rather than bytes. NÚstdinz/stdin and input arguments may not both be used.)r)r r ) rr"r!Ú communicaterrnrNrmÚpollr r+) rtrrxrorpZprocessrr rsrrrr)ˆs*    cCsèg}d}xÔ|D]Ì}g}|r$|jdƒd|kp8d|kp8| }|rH|jdƒxj|D]b}|dkrf|j|ƒqN|dkr”|jdt|ƒdƒg}|jdƒqN|r¦|j|ƒg}|j|ƒqNW|rÂ|j|ƒ|r|j|ƒ|jdƒqWdj|ƒS) a• Translate a sequence of arguments into a command line string, using the same rules as the MS C runtime: 1) Arguments are delimited by white space, which is either a space or a tab. 2) A string surrounded by double quotation marks is interpreted as a single argument, regardless of white space contained within. A quoted string can be embedded in an argument. 3) A double quotation mark preceded by a backslash is interpreted as a literal double quotation mark. 4) Backslashes are interpreted literally, unless they immediately precede a double quotation mark. 5) If backslashes immediately precede a double quotation mark, every pair of backslashes is interpreted as a literal backslash. If the number of backslashes is odd, the last backslash escapes the next double quotation mark as described in rule 3. Fú ú ú"ú\rGz\"rv)rMÚlenrhr{)ÚseqÚresultZ needquoterkZbs_bufÚcrrrÚ list2cmdlineºs4         rˆcCslyt|ddtd�}d}Wn.tk rF}z|j}|j}WYdd}~XnX|dd…dkrd|dd…}||fS) aöReturn (exitcode, output) of executing cmd in a shell. Execute the string 'cmd' in a shell with 'check_output' and return a 2-tuple (status, output). The locale encoding is used to decode the output and process newlines. A trailing newline is stripped from the output. The exit status for the command can be interpreted according to the rules for the function 'wait'. Example: >>> import subprocess >>> subprocess.getstatusoutput('ls /bin/ls') (0, '/bin/ls') >>> subprocess.getstatusoutput('cat /bin/junk') (1, 'cat: /bin/junk: No such file or directory') >>> subprocess.getstatusoutput('/bin/junk') (127, 'sh: /bin/junk: not found') >>> subprocess.getstatusoutput('/bin/kill $$') (-15, '') T)Úshellrur rNrFÚ éÿÿÿÿr‹)r(r#r r r )r ÚdataZexitcodeZexrrrr&s cCs t|ƒdS)a%Return output (stdout or stderr) of executing cmd in a shell. Like getstatusoutput(), except the exit status is ignored and the return value is a string containing the command's output. Example: >>> import subprocess >>> subprocess.getoutput('ls /bin/ls') '/bin/ls' rF)r&)r rrrr'"s c@sŒeZdZdZdZd?dddddeddddddddffdddœdd „Zd d „Zd d „Zdd„Z e j e j fdd„Zdd„Zdd„Zd@dd„Zdd„Zdd„Zdd„Ze�rdd„Zd d!„Zd"d#„Zdejejejfd$d%„ZdAd&d'„Zd(d)„Zd*d+„Z d,d-„Z!d.d/„Z"e"Z#n„d0d„Zd1d#„Ze$j%e$j&e$j'e$j(e$j)e$j*fd2d3„Z+de$j,e$j-e.j/fd4d%„Zd5d6„Z0dBd7d'„Zd8d+„Z d9d:„Z1d;d-„Z!d„Z#dS)Cr!aƒ Execute a child program in a new process. For a complete description of the arguments see the Python documentation. Arguments: args: A string, or a sequence of program arguments. bufsize: supplied as the buffering argument to the open() function when creating the stdin/stdout/stderr pipe file objects executable: A replacement program to execute. stdin, stdout and stderr: These specify the executed programs' standard input, standard output and standard error file handles, respectively. preexec_fn: (POSIX only) An object to be called in the child process just before the child is executed. close_fds: Controls closing or inheriting of file descriptors. shell: If true, the command will be executed through the shell. cwd: Sets the current directory before the child is executed. env: Defines the environment variables for the new process. universal_newlines: If true, use universal line endings for file objects stdin, stdout and stderr. startupinfo and creationflags (Windows only) restore_signals (POSIX only) start_new_session (POSIX only) pass_fds (POSIX only) encoding and errors: Text mode encoding and error handling to use for file objects stdin, stdout and stderr. Attributes: stdin, stdout, stderr, pid, returncode FrFNrT)ÚencodingÚerrorscCsrtƒtjƒ|_d|_d|_|dkr(d}t|tƒs:tdƒ‚t r�|dk rNt dƒ‚|dk pd|dk pd|dk }|t kr~|rxd}qŽd}qÖ|rÖ|rÖt dƒ‚nF|t krœd}|r¶| r¶t j dtƒd}| dk rÆt d ƒ‚|d krÖt d ƒ‚||_d|_d|_d|_d|_d|_| |_||_||_|j|||ƒ\}}}}}}t �rz|dk�rFtj|jƒd ƒ}|dk�r`tj|jƒd ƒ}|dk�rztj|jƒd ƒ}|�pˆ|�pˆ| }d|_yÖ|dk�rÎtj|d |ƒ|_|�rÎtj|jd|dk||d �|_|dk�rtj|d|ƒ|_|�rtj|j||d�|_|dk�r6tj|d|ƒ|_|�r6tj|j||d�|_|j |||||| | | || ||||||||ƒW�nxDt!d|j|j|jfƒD]*}y |j"ƒWnt#k �r¬YnX�q†W|j�sfg}|t$k�rÔ|j%|ƒ|t$k�rè|j%|ƒ|t$k�rü|j%|ƒt&|dƒ�r|j%|j'ƒxP|D]H}y*t �r)Ú_child_createdr rŸÚResourceWarningr@r?rM)rZ_maxsizeZ_warnrrrr= s    z Popen.__del__cCs"t|dƒstjtjtjƒ|_|jS)Nr“)rªr«r¤ÚdevnullÚO_RDWRr“)rrrrÚ _get_devnulls zPopen._get_devnullcCs²|rZy|jj|ƒWnDtk r(Yn2tk rX}z|jtjkrFn‚WYdd}~XnXy|jjƒWnDtk r|Yn2tk r¬}z|jtjkršn‚WYdd}~XnXdS)N)r}ÚwriteÚBrokenPipeErrorr©ÚerrnoZEINVALr¨)rrtÚexcrrrÚ _stdin_writes"  zPopen._stdin_writec Csè|jr|rtdƒ‚|dkr–|j r–|j|j|jgjdƒdkr–d}d}|jrV|j|ƒn6|jrr|jjƒ}|jjƒn|jrŒ|jjƒ}|jjƒ|j ƒnJ|dk rªt ƒ|}nd}z|j |||ƒ\}}Wdd|_X|j |j |ƒd�}||fS)a4Interact with process: Send data to stdin. Read data from stdout and stderr, until end-of-file is reached. Wait for process to terminate. The optional "input" argument should be data to be sent to the child process (if self.universal_newlines is True, this should be a string; if it is False, "input" should be bytes), or None, if no data should be sent to the child. communicate() returns a tuple (stdout, stderr). These will be bytes or, if self.universal_newlines was True, a string. z.Cannot send input after starting communicationNrGT)r) r—rr}rr ÚcountrÐÚreadr¨rmÚ_timeÚ _communicateÚ_remaining_time)rrtrrr ÚendtimeÚstsrrrr~7s.        zPopen.communicatecCs|jƒS)zSCheck if child process has terminated. Set and return returncode attribute.)r@)rrrrrhsz Popen.pollcCs|dkr dS|tƒSdS)z5Convenience for _communicate when computing timeouts.N)rÓ)rrÖrrrrÕnszPopen._remaining_timecCs&|dkr dStƒ|kr"t|j|ƒ‚dS)z2Convenience for checking if a timeout has expired.N)rÓrrN)rrÖÚ orig_timeoutrrrÚ_check_timeoutvs zPopen._check_timeoutc Cs€|dkr|dkr|dkrd Sd \}}d\}}d\}} |dkrttjtjƒ}|dkrrtjddƒ\}} t|ƒ}tj| ƒnj|tkr tjddƒ\}}t|ƒt|ƒ}}n>|tkr¸tj |j ƒƒ}n&t |t ƒ�rÐtj |ƒ}ntj |j ƒƒ}|j|ƒ}|dk�r,tjtjƒ}|dk�rštjddƒ\} }t|ƒ}tj| ƒnn|tk�rZtjddƒ\}}t|ƒt|ƒ}}n@|tk�rttj |j ƒƒ}n&t |t ƒ�rŒtj |ƒ}ntj |j ƒƒ}|j|ƒ}|dk�rètjtjƒ} | dk�rftjddƒ\} } t| ƒ} tj| ƒn~|tk�rtjddƒ\}} t|ƒt| ƒ}} nP|tk�r&|} n@|tk�r@tj |j ƒƒ} n&t |t ƒ�rXtj |ƒ} ntj |j ƒƒ} |j| ƒ} |||||| fS)z|Construct and return tuple with IO objects: p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite NrFrr‹r‹r‹r‹r‹r‹)r‹r‹r‹r‹r‹r‹r‹r‹)r‹r‹r‹r‹)r‹r‹r‹r‹)r‹r‹)r<Z GetStdHandler.Z CreatePiper4r6r"r*r¡Z get_osfhandlerËr˜r8ÚfilenoÚ_make_inheritabler/r0r#) rr}rr r·r¸r¹rºr»r¼Ú_rrrr ‚sn                        zPopen._get_handlescCs&tjtjƒ|tjƒddtjƒ}t|ƒS)z2Return a duplicate of handle, which is inheritablerrF)r<ZDuplicateHandleZGetCurrentProcessZDUPLICATE_SAME_ACCESSr4)rZhandleÚhrrrrÛÊs  zPopen._make_inheritablecCsJ| stdƒ‚t|tƒs t|ƒ}|dkr.tƒ}d | ||fkr^|jtjO_| |_||_ ||_ | r”|jtj O_tj |_ tjjddƒ}dj||ƒ}z>tj||ddt| ƒ| ||dk rÀtj|ƒnd|ƒ \}}}}Wd| d krä| jƒ|d krô|jƒ|d k�r|jƒt|dƒ�rtj|jƒd|_Xd|_t|ƒ|_||_tj|ƒdS) z$Execute program (MS Windows version)z"pass_fds not supported on Windows.NrFZCOMSPECzcmd.exez {} /c "{}"r“Tr‹r‹r‹r‹)ÚAssertionErrorr˜Ústrrˆrrr<r2rrrr3r1rr«ÚenvironrrryZ CreateProcessr8Úfspathr7rªr¨r“r¢rÇr4Ú_handlerŸr6)rrNr­r®r¯r¶r°r±r²r³r‰r·r¸r¹rºr»r¼Zunused_restore_signalsZunused_start_new_sessionZcomspecZhpZhtrŸÚtidrrrr¦ÓsH       zPopen._execute_childcCs,|jdkr&||jdƒ|kr&||jƒ|_|jS)zÎCheck if child process has terminated. Returns returncode attribute. This method is called by __del__, so it can only refer to objects in its local scope. Nr)r râ)rr>Z_WaitForSingleObjectZ_WAIT_OBJECT_0Z_GetExitCodeProcessrrrr@s  zPopen._internal_pollcCs€|dk r"tjdtdd�|j|ƒ}|dkr2tj}n t|dƒ}|jdkrztj|j |ƒ}|tj krlt |j |ƒ‚tj |j ƒ|_|jS)zOWait for child process to terminate. Returns returncode attribute.Nz0'endtime' argument is deprecated; use 'timeout'.rG)Ú stackleveliè)rœr�ÚDeprecationWarningrÕr<ZINFINITEr8r ÚWaitForSingleObjectrâZ WAIT_TIMEOUTrrNÚGetExitCodeProcess)rrrÖZtimeout_millisr†rrrrm$s      z Popen.waitcCs|j|jƒƒ|jƒdS)N)rMrÒr¨)rZfhÚbufferrrrÚ _readerthread:szPopen._readerthreadcCs`|jrDt|dƒ rDg|_tj|j|j|jfd�|_d|j_|jjƒ|j rˆt|dƒ rˆg|_ tj|j|j |j fd�|_ d|j _|j jƒ|j r˜|j |ƒ|jdk rÊ|jj|j|ƒƒ|jjƒrÊt|j|ƒ‚|j dk rü|j j|j|ƒƒ|j jƒrüt|j|ƒ‚d}d}|j�r|j}|jjƒ|j �r4|j }|j jƒ|dk �rF|d}|dk �rX|d}||fS)NÚ _stdout_buff)ÚtargetrNTÚ _stderr_buffr)rrªrêr”ZThreadréZ stdout_threadZdaemonÚstartr rìZ stderr_threadr}rÐr{rÕZis_aliverrNr¨)rrtrÖrØrr rrrrÔ?sF             zPopen._communicatecCsl|jdk rdS|tjkr"|jƒnF|tjkr>tj|jtjƒn*|tjkrZtj|jtjƒnt dj |ƒƒ‚dS)zSend a signal to the process.NzUnsupported signal: {}) r rÚSIGTERMÚ terminateZ CTRL_C_EVENTr«rnrŸZCTRL_BREAK_EVENTrry)rÚsigrrrÚ send_signalss     zPopen.send_signalc CsX|jdk rdSytj|jdƒWn2tk rRtj|jƒ}|tjkrH‚||_YnXdS)zTerminates the process.NrF)r r<ZTerminateProcessrâÚPermissionErrorrçZ STILL_ACTIVE)rZrcrrrrï�s   zPopen.terminatec Cs.d\}}d\}}d \}} |dkr"n@|tkr8tjƒ\}}n*|tkrJ|jƒ}nt|tƒrZ|}n|jƒ}|dkrln@|tkr‚tjƒ\}}n*|tkr”|jƒ}nt|tƒr¤|}n|jƒ}|dkr¶nh|tkrÌtjƒ\}} nR|tk�rð|d krä|} n t j jƒ} n.|tk�r|jƒ} nt|tƒ�r|} n|jƒ} |||||| fS) z|Construct and return tuple with IO objects: p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite rFNr‹r‹)r‹r‹r‹r‹)r‹r‹r‹r‹)r‹r‹r‹) r"r«Úpiper*rËr˜r8rÚr#rAÚ __stdout__) rr}rr r·r¸r¹rºr»r¼rrrr –sJ         c)"s°t|ttfƒr|g}nt|ƒ}| r:ddg|}ˆr:ˆ|d<ˆdkrJ|d‰ˆ}tjƒ\}}g}x |dkr~|j|ƒtj|ƒ}q`Wx|D]}tj|ƒq†W�zÖzì|dk rôg}xL|j ƒD]:\}}tj |ƒ}d|krÖt dƒ‚|j|dtj |ƒƒq´Wnd}tj ˆƒ‰tj j ˆƒ�rˆf}nt‡fdd „tj|ƒDƒƒ}t|ƒ}|j|ƒtj|||tttt|ƒƒƒ||| | | ||||||||ƒ|_d |_Wdtj|ƒXt|d dƒ}| dk�rÊ| dk�rÊ| |k�rÊtj| ƒ|dk�rò| dk�rò||k�ròtj|ƒ|dk�r|dk�r||k�rtj|ƒ|dk �r.tj|ƒd |_tƒ}x2tj|d ƒ}||7}| �sft|ƒd k�rsz'Popen._execute_child..Tr“rFiPÃó:rGsSubprocessErroró0z#Bad exception data from child: {!r}ÚasciiéZnoexecrvz: r‹r‹r‹r‹r‹r‹)/r˜rßÚbytesÚlistr«rórMÚdupr¨rbr÷rröÚdirnameÚtupleÚ get_exec_pathÚsetÚaddÚ_posixsubprocessZ fork_execÚsortedÚmapr8rŸrÇrcr¢Ú bytearrayrÒr„ÚwaitpidÚ_handle_exitstatusrArBr ÚChildProcessErrorÚsplitrÀryÚbuiltinsrÚ issubclassr©ÚstrerrorrÎÚENOENTÚrepr))rrNr­r®r¯r¶r°r±r²r³r‰r·r¸r¹rºr»r¼r´rµZorig_executableZ errpipe_readZ errpipe_writeZlow_fds_to_closeZlow_fdZenv_listÚkrSZexecutable_listZ fds_to_keepZ devnull_fdZ errpipe_dataÚpartrŸr×Zexception_nameZ hex_errnoZerr_msgZchild_exception_typeZ errno_numZchild_exec_never_calledZ err_filenamer)r­rr¦Ìs¼                                cCsL||ƒr||ƒ |_n2||ƒr*||ƒ|_n||ƒr@||ƒ |_ntdƒ‚dS)z:All callers to this function MUST hold self._waitpid_lock.zUnknown child exit status!N)r r)rr×Z _WIFSIGNALEDZ _WTERMSIGZ _WIFEXITEDZ _WEXITSTATUSZ _WIFSTOPPEDZ _WSTOPSIGrrrr Xs zPopen._handle_exitstatuscCs®|jdkr¨|jjdƒsdSz€y8|jdk r.|jS||j|ƒ\}}||jkrR|j|ƒWnBtk r–}z&|dk rv||_n|j|kr†d|_WYdd}~XnXWd|jjƒX|jS)zõCheck if child process has terminated. Returns returncode attribute. This method is called by __del__, so it cannot reference anything outside of the local scope (nor can any methods it calls). NFr)r r•ÚacquirerŸr r©rÎÚrelease)rr>Z_waitpidZ_WNOHANGZ_ECHILDrŸr×Úerrrr@js      c Cs>ytj|j|ƒ\}}Wntk r4|j}d}YnX||fS)z:All callers to this function MUST hold self._waitpid_lock.r)r«r rŸr )rZ wait_flagsrŸr×rrrÚ _try_wait�s  zPopen._try_waitc Csp|jdk r|jS|dk r(tjdtdd�|dk s8|dk r^|dkrLtƒ|}n|dkr^|j|ƒ}|dk �rd}xü|jjdƒrÔzL|jdk rˆP|jt j ƒ\}}||j ks®|dks®t ‚||j krÄ|j |ƒPWd|jjƒX|j|ƒ}|dkròt|j|ƒ‚t|d|dƒ}tj|ƒqnWnXxV|jdk�rh|j�8|jdk �r6P|jdƒ\}}||j k�rZ|j |ƒWdQRX�qW|jS) zOWait for child process to terminate. Returns returncode attribute.Nz0'endtime' argument is deprecated; use 'timeout'.rG)rägü©ñÒMb@?Frgš™™™™™©?)r rœr�rårÓrÕr•rrr«ÚWNOHANGrŸrÞr rrrNÚminÚtimeZsleep)rrrÖZdelayrŸr×Z remainingrrrrmšsL             c#Cs|jrZ|j rZy|jjƒWntk r0YnX|sZy|jjƒWntk rXYnXd}d}|js’i|_|jr€g|j|j<|jr’g|j|j<|jr¤|j|j}|jr¶|j|j}|j|ƒ|j rÐt |j ƒ}t ƒ��ž}|jrô|rô|j |jt jƒ|j�r |j |jt jƒ|j�r$|j |jt jƒ�xJ|jƒ�rp|j|ƒ}|dk �r\|dk�r\t|j|ƒ‚|j|ƒ} |j||ƒxø| D]ð\} } | j|jk�r||j|jt…} y|jtj| j| ƒ7_Wn,tk �rê|j| jƒ| jjƒYn*X|jt|j ƒk�rf|j| jƒ| jjƒnP| j|j|jfk�rxtj| jdƒ} | �sT|j| jƒ| jjƒ|j| jj| ƒ�qxW�q(WWdQRX|j |j|ƒd�|dk �r¢dj!|ƒ}|dk �r¶dj!|ƒ}|j"�sÎ|j#�sÎ|j$�r|dk �rî|j%||jj"|jj#ƒ}|dk �r|j%||jj"|jj#ƒ}||fS)Nri€)rrw)&r}r—ÚflushrÍr¨Z_fileobj2outputrr Ú _save_inputr–Ú memoryviewÚ_PopenSelectorÚregisterÚ selectorsZ EVENT_WRITEZ EVENT_READZget_maprÕrrNÚselectrÙZfileobjÚ _input_offsetÚ _PIPE_BUFr«rÌr¾Z unregisterr„rÒrMrmr{r�rŽrurÂ)rrtrÖrØrr Z input_viewZselectorrZreadyÚkeyZeventsÚchunkrŒrrrrÔÎsŽ                 (        cCsR|jrN|jdkrNd|_||_|dk rN|js6|js6|jrN|jj|jj|jjƒ|_dS)Nr)r}r–r$r�rŽruÚencode)rrtrrrr/s zPopen._save_inputcCs|jdkrtj|j|ƒdS)zSend a signal to the process.N)r r«rnrŸ)rrðrrrrñ<s cCs|jtjƒdS)z/Terminate the process with SIGTERM N)rñrrî)rrrrrïBscCs|jtjƒdS)z*Kill the process with SIGKILL N)rñrÚSIGKILL)rrrrrnGsz Popen.killr‹)NN)NN)NN)2rrrrrÇr›rrÂrÃrÅrArBrœr�r=rËrÐr~rrÕrÙršr rÛr¦r<ræZ WAIT_OBJECT_0rçr@rmrérÔrñrïrnr«Ú WIFSIGNALEDÚWTERMSIGÚ WIFEXITEDÚ WEXITSTATUSÚ WIFSTOPPEDÚWSTOPSIGr r rrÎZECHILDrrrrrrr!2sd+  1H @ 46 " 4a r‹éþÿÿÿéýÿÿÿ)>rrAÚplatformršr£r«rrrrœrÎrrÓÚ Exceptionrr rr”r¡r<rrr#r"Ú ImportErrorZdummy_threadingrcr%rªr r ZSelectSelectorÚ__all__r,r-r.r/r0r1r2r3rhr8r4r?rEr"r#r*rOrlr$r%r(Úobjectr+r)rˆr&r'r›r!rrrrÚ*sr  %      (  .,!2I