1 $ˆl–äY>””†Ù”â�nãa¸&TÅ£À „i¦B¿ÄÃ?÷a ´ilFã@s˜dZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlm Z ddl Z z ddlZWneyŠdZYn0z ddlZWney®dZYn0gd¢ZzddlZddlZdZWn.eyþdZddlZddlZddlZYn`0ddlmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*e +gd¢¡Gd d „d e,ƒZ-Gd d „d e-ƒZ.Gd d„de-ƒZ/e�r´Gdd„dƒZ0Gdd„de1ƒZ2n&e3eddƒZ4e5edƒ�rÔej6Z7nej8Z7e�rîdZ9dd„Z:n gZ9dd„Z:dZ;dZdd„Z?dd œd!d"„Z@d#d$„ZAdd œd%d&„ZBGd'd(„d(eCƒZDddddd)œd*d+„ZEd,d-„ZFd.d/„ZGd0d1„ZHd2d3„ZIeIƒZJGd4d5„d5eCƒZKdS)6a•Subprocesses with accessible I/O streams This module allows you to spawn processes, connect to their input/output/error pipes, and obtain their return codes. For a complete description of this module see the Python documentation. Main API ======== run(...): Runs a command, waits for it to complete, then returns a CompletedProcess instance. Popen(...): A class for flexibly executing a command in a new process Constants --------- DEVNULL: Special value that indicates that os.devnull should be used PIPE: Special value that indicates a pipe should be created STDOUT: Special value that indicates that stderr should go to stdout Older API ========= call(...): Runs a command, waits for it to complete, then returns the return code. check_call(...): Same as call() but raises CalledProcessError() if return code is not 0 check_output(...): Same as check_call() but returns the contents of stdout instead of a return code getoutput(...): Runs a command in the shell, waits for it to complete, then returns the output getstatusoutput(...): Runs a command in the shell, waits for it to complete, then returns a (exitcode, output) tuple éN)Ú monotonic)ÚPopenÚPIPEÚSTDOUTÚcallÚ check_callÚgetstatusoutputÚ getoutputÚ check_outputÚrunÚCalledProcessErrorÚDEVNULLÚSubprocessErrorÚTimeoutExpiredÚCompletedProcessTF)ÚCREATE_NEW_CONSOLEÚCREATE_NEW_PROCESS_GROUPÚSTD_INPUT_HANDLEÚSTD_OUTPUT_HANDLEÚSTD_ERROR_HANDLEÚSW_HIDEÚSTARTF_USESTDHANDLESÚSTARTF_USESHOWWINDOWÚABOVE_NORMAL_PRIORITY_CLASSÚBELOW_NORMAL_PRIORITY_CLASSÚHIGH_PRIORITY_CLASSÚIDLE_PRIORITY_CLASSÚNORMAL_PRIORITY_CLASSÚREALTIME_PRIORITY_CLASSÚCREATE_NO_WINDOWÚDETACHED_PROCESSÚCREATE_DEFAULT_ERROR_MODEÚCREATE_BREAKAWAY_FROM_JOB)rrrrrrrrÚ STARTUPINFOrrrrrrrr r!r"c@s eZdZdS)rN)Ú__name__Ú __module__Ú __qualname__©r'r'ú"/usr/lib64/python3.9/subprocess.pyriórc@s<eZdZdZd dd„Zdd„Zedd„ƒZejd d„ƒZdS) r z£Raised when run() is called with check=True and the process returns a non-zero exit status. Attributes: cmd, returncode, stdout, stderr, output NcCs||_||_||_||_dS©N)Ú returncodeÚcmdÚoutputÚstderr)Úselfr+r,r-r.r'r'r(Ú__init__sszCalledProcessError.__init__cCsf|jrR|jdkrRzd|jt |j ¡fWStyNd|j|j fYS0nd|j|jfSdS)NrzCommand '%s' died with %r.z)Command '%s' died with unknown signal %d.z.Command '%s' returned non-zero exit status %d.)r+r,ÚsignalÚSignalsÚ ValueError©r/r'r'r(Ú__str__ysÿ  ÿÿzCalledProcessError.__str__cCs|jS)z+Alias for output attribute, to match stderr©r-r4r'r'r(Ústdout…szCalledProcessError.stdoutcCs ||_dSr*r6©r/Úvaluer'r'r(r7Šs)NN© r$r%r&Ú__doc__r0r5Úpropertyr7Úsetterr'r'r'r(r ls   r c@s<eZdZdZd dd„Zdd„Zedd„ƒZejd d„ƒZdS