Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
subprocess.cpython-314.pyc529 linesDownload Raw Back to __pycache__
1+
2��ilb���Rt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RI	t	^RI3t4^RIt^RIHt
^RIt^RIt.R/Ot^RItRt]P*R09t]'dE^RIt^R5IHtHtHtHtHtHtHtHtH t H!t!H"t"H#t#H$t$H%t%H&t&H't'H(t(H)t)H*t*H+t+]PY.R1O4M+]'d^RI-H.t/!R
R4t0M6!RR4t0^RI1t1^RI2t2!RR]34t4!RR]44t5!RR]44t6]'d!RR4t7!RR]84t9M2]:!]1RR4t;]<!]2R4'd]2Pzt>M]2P~t>]'dRt@RtAM.t@RtAR2tBR3tCR4tDRtERtFRtGRR/RltHR tIRR/R!ltJ!R"R]K4tLR#RR$R	RRR%R	/R&ltMR'tNR(RR)R/R*ltOR(RR)R/R+ltPR,tQ]Q!4tR]<!]R-4tS!R.R4tTR# ]dRtEL�i;i ]dR	tEL�i;i)5a�Subprocesses with accessible I/O streams7 8This module allows you to spawn processes, connect to their9input/output/error pipes, and obtain their return codes.10 11For a complete description of this module see the Python documentation.12 13Main API14========15run(...): Runs a command, waits for it to complete, then returns a16          CompletedProcess instance.17Popen(...): A class for flexibly executing a command in a new process18 19Constants20---------21DEVNULL: Special value that indicates that os.devnull should be used22PIPE:    Special value that indicates a pipe should be created23STDOUT:  Special value that indicates that stderr should go to stdout24 25 26Older API27=========28call(...): Runs a command, waits for it to complete, then returns29    the return code.30check_call(...): Same as call() but raises CalledProcessError()31    if return code is not 032check_output(...): Same as check_call() but returns the contents of33    stdout instead of a return code34getoutput(...): Runs a command in the shell, waits for it to complete,35    then returns the output36getstatusoutput(...): Runs a command in the shell, waits for it to complete,37    then returns a (exitcode, output) tuple38N)�	monotonic�Popen�CalledProcessError�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�STARTF_FORCEONFEEDBACK�STARTF_FORCEOFFFEEDBACK�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�STARTUPINFO)�	fork_execc��]tRt^lt]P39t]Pt]Pt]Pt]Pt	]40PtRtR#)�	_del_safe�N)
�__name__�41__module__�__qualname__�__firstlineno__�os�waitpid�waitstatus_to_exitcode�42WIFSTOPPED�WSTOPSIG�WNOHANG�errno�ECHILD�__static_attributes__r ��Lib\subprocess.pyrrls;���j�j�G�%'�%>�%>�"����J��{�{�H��j�j�G��\�\�Fr.rc�B�]tRt^ttRtRtRtRtRt]	Pt43RtR#)rNr )r!r"r#r$r&r'r(r)r*r+r,r-r r.r/rrts%���G�%)�"��J��H��G��\�\�Fr.c��]tRt^�tRtR#)rr N)r!r"r#r$r-r r.r/rr�s��$r.c�ha�]tRt^�toRtRRltRt]R4t]PR4tRt44VtR#)	rz�Raised when run() is called with check=True and the process45returns a non-zero exit status.46 47Attributes:48  cmd, returncode, stdout, stderr, output49Nc�6�WnW nW0nW@nR#�N)�50returncode�cmd�output�stderr)�selfr5r6r7r8s&&&&&r/�__init__�CalledProcessError.__init__�s��$�������r.c�P�VP'dFVP^8d5RVP:R\P!VP)4:R2#RVPVP3,# \d$RTPTP)3,u#i;i)��	Command 'z' died with �.z)Command '%s' died with unknown signal %d.z.Command '%s' returned non-zero exit status %d.)r5r6�signal�Signals�51ValueError�r9s&r/�__str__�CalledProcessError.__str__�s����?�?�?�t����2�
4����&�.�.�$�/�/�1A�"B�D�D�D��H�H�d�o�o�G/�/�
/��	�
4�B����4�?�?�"2�F4�4�4�
4�s�3A7�7+B%�$B%c��VP#)z+Alias for output attribute, to match stderr�r7rCs&r/�stdout�CalledProcessError.stdout�s���{�{�r.c��WnR#r4rG�r9�values&&r/rHrI��	���r.)r6r7r5r8�NN�r!r"r#r$�__doc__r:rD�propertyrH�setterr-�__classdictcell__��
__classdict__s@r/rr�s@������52/������]�]���r.c�ha�]tRt^�toRtRRltRt]R4t]PR4tRt53VtR#)	rz�This exception is raised when the timeout expires while waiting for a54child process.55 56Attributes:57    cmd, output, stdout, stderr, timeout58Nc�6�WnW nW0nW@nR#r4)r6�timeoutr7r8)r9r6rXr7r8s&&&&&r/r:�TimeoutExpired.__init__�s���������r.c�@�RVP:RVP:R2#)r>z' timed out after z seconds)r6rXrCs&r/rD�TimeoutExpired.__str__�s�����4�<�<�)�	*r.c��VP#r4rGrCs&r/rH�TimeoutExpired.stdout�s���{�{�r.c��WnR#r4rGrKs&&r/rHr]�rMr.)r6r7r8rXrNrOrTs@r/rr�s@������*������]�]���r.c�Ha�]tRt^�toR^RRRRRRR^RR/RltR	tR59tVtR#)r�dwFlags�	hStdInputN�60hStdOutput�	hStdError�wShowWindow�lpAttributeListc�h�WnW nW0nW@nWPnT;'gR./VnR#)�handle_listN�r`rarbrcrdre)r9r`rarbrcrdres&$$$$$$r/r:�STARTUPINFO.__init__�s1��"�L�&�N�(�O�&�N�*��#2�#I�#I�}�b�6I�D� r.c	���VPP4pRV9d\VR,4VR&\VPVP61VPVPVPVR7#)rgrh)	re�copy�listrr`rarbrcrd)r9�	attr_lists& r/rk�STARTUPINFO.copy�sf���,�,�1�1�3�I��	�)�+/�	�-�0H�+I�	�-�(��t�|�|�)-���*.�/�/�)-���+/�+;�+;�/8�:�
:r.)r`rcrarbrerd)r!r"r#r$r:rkr-rSrTs@r/rr�sH����	J�a�	J�4�	J�D�	J�#�	J�12�	J�DH�	J�62	:�63	:r.c�Ta�]tRt^�toRt]P3RltRtRt	]t64RtVtR#)�HandleFc�L�VP'gRVnV!V4R#R#)TN��closed)r9�CloseHandles&&r/�Close�Handle.Close�s���;�;�;�"����D�!�r.c�`�VP'gRVn\V4#\R4h)Tzalready closed)rs�intrBrCs&r/�Detach�
Handle.Detach�s(���;�;�;�"����4�y� ��-�.�.r.c�R�RVPP\V43,#)z%s(%d))�	__class__r!rxrCs&r/�__repr__�Handle.__repr__�s ���t�~�~�6�6��D�	�B�B�Br.rrN)
r!r"r#r$rs�_winapirtruryr}�__del__r-rSrTs@r/rprp�s*������$+�$7�$7�	"�65	/�	C��r.rp�PIPE_BUFi�PollSelectorc��R#r4r r r.r/�_cleanupr�	s��r.c���\fR#\R,F?pVP\PR7pVfK)\P	V4KA	R# \66dKSi;i)N�NNN��67_deadstate)�_active�_internal_poll�sys�maxsize�removerB)�inst�ress  r/r�r�s]���?���A�J�J�D��%�%����%�=�C�����N�N�4�(�	��68"����s�A�A,�+A,c��.p\PPpV^8�d VPRRV,,4V#)zcReturn a list of command-line arguments reproducing the current69optimization settings in sys.flags.�-�O)r��flags�optimize�append)�argsrLs  r/�"_optim_args_from_interpreter_flagsr�(s9���D��I�I���E��q�y����C�#��+�%�&��Kr.c���RRRRRRRRR	R70RR/p\4pVP4FFwr#\\PV4pV^8�gK(VPR
W4,,4KH	\PP'dVPR4M�\PP'dVPR4\PP'dVPR4\PP'dVPR4\PR,p\\R/4p\PPp\PPpV^8�dVPR4MV'dVPR4V'dVPR4VFpVPRV,4K	V'dVPR4\V4F9pVR8XdKWc,p	V	RJdTp71M	V:RV	:2p72VPRV7334K;	V#)zyReturn a list of command-line arguments reproducing the current74settings in sys.flags, sys.warnoptions and sys._xoptions.�debug�d�dont_write_bytecode�B�no_site�S�verbose�v�
bytes_warning�b�quiet�qr�z-Iz-Ez-sz-Pr��	_xoptionszerror::BytesWarningzdefault::BytesWarning�defaultz-W�-X�devT�=)r�r�)r��items�getattrr�r�r��isolated�ignore_environment�no_user_site�	safe_path�warnoptionsr��dev_moder��extend�sorted)�flag_opt_mapr��flag�optr��warnopts�xoptionsr�r�rL�args           r/�_args_from_interpreter_flagsr�2s���	��	�s��3��3�����75�L�.�/�D�!�'�'�)�	���C�I�I�t�$���q�5��K�K��c�g�
�&�*�76�y�y�������D���9�9�'�'�'��K�K����9�9�!�!�!��K�K����9�9�����K�K������q�!�H��s�K��,�H��I�I�+�+�M��y�y�!�!�H��q�����-�.�	����/�0�����	�"������D�3�J�������M�"��h����%�<���
���D�=��C� �%�(�C����T�3�K� � ��Kr.c��\PP'd�\P!4pVPP77p^pVP;p'd(VPP78V8wdMV^,
pK;\P!R\V4\PP'dR#\P!4#)�z"'encoding' argument not specified.zutf-8)
r�r��warn_default_encoding�	_getframe�f_code�co_filename�f_back�warnings�warn�EncodingWarning�	utf8_mode�locale�getencoding)�f�filename�79stacklevels   r/�_text_encodingr�ps����y�y�&�&�&��M�M�O���8�8�'�'���80��8�8�m�a�m��x�x�#�#�x�/���!�O�J��
�
�:�%�z�	3��y�y������!�!�#�#r.rXc��\V/VB;_uu_4pVPVR7uuRRR4# TP4h;i +'giR#;i)z�Run command with arguments.  Wait for command to complete or81for timeout seconds, then return the returncode attribute.82 83The arguments are the same as for the Popen constructor.  Example:84 85retcode = call(["ls", "-l"])86�rXN)r�wait�kill)rX�	popenargs�kwargs�ps$*, r/�callr��sP��87�	�	$�V�	$�	$��	��6�6�'�6�*�88%�	$��	�
�F�F�H���
89%�	$�	$�s�A�2�A�A�A	c�~�\V/VBpV'd*VPR4pVf90V^,p\W#4h^#)a7Run command with arguments.  Wait for command to complete.  If91the exit code was zero then return, otherwise raise92CalledProcessError.  The CalledProcessError object will have the93return code in the returncode attribute.94 95The arguments are the same as for the call function.  Example:96 97check_call(["ls", "-l"])98r�)r��getr)r�r��retcoder6s*,  r/�99check_callr��s@���I�(��(�G���j�j�� ���;��A�,�C� ��.�.�r.c	�h�R
FpW29gK\VR24h	RV9dqVR,ffVPR4'gFVPR4'g/VPR4'gVPR4'dR	pMR100pWBR&\VR\RVRR/VBP#)a�Run command with arguments and return its output.101 102If the exit code was non-zero it raises a CalledProcessError.  The103CalledProcessError object will have the return code in the returncode104attribute and output in the output attribute.105 106The arguments are the same as for the Popen constructor.  Example:107 108>>> check_output(["ls", "-l", "/dev/null"])109b'crw-rw-rw- 1 root root 1, 3 Oct 18  2007 /dev/null\n'110 111The stdout argument is not allowed as it is used internally.112To capture standard error in the result, use stderr=STDOUT.113 114>>> check_output(["/bin/sh", "-c",115...               "ls -l non_existent_file ; exit 0"],116...              stderr=STDOUT)117b'ls: non_existent_file: No such file or directory\n'118 119There is an additional optional argument, "input", allowing you to120pass a string to the subprocess's stdin.  If you use this argument121you may not also use the Popen constructor's "stdin" argument, as122it too will be used internally.  Example:123 124>>> check_output(["sed", "-e", "s/foo/bar/"],125...              input=b"when in the course of fooman events\n")126b'when in the course of barman events\n'127 128By default, all communication is in bytes, and therefore any "input"129should be bytes, and the return value will be bytes.  If in text mode,130any "input" should be a string, and the return value will be a string131decoded according to locale encoding, or by "encoding" if set. Text mode132is triggered by setting any of text, encoding, errors or universal_newlines.133rH�checkz- argument not allowed, it will be overridden.�input�universal_newlines�text�encoding�errors�r.rXT)rHr�)rBr��run�PIPErH)rXr�r��kw�emptys$*,  r/�check_outputr��s���F"��
�<���t�#P�Q�R�R�"��&��V�G�_�4��:�:�*�+�+�v�z�z�&�/A�/A�V�Z�Z�PZ�E[�E[��:�:�h�'�'��E��E��w���	��$����t������ r.c�^a�]tRtRtoRtRRltRt]!]P4t134RtRtVt
R#)	ri�a)A process that has finished running.135 136This is returned by run().137 138Attributes:139  args: The list or str args passed to run().140  returncode: The exit code of the process, negative for signals.141  stdout: The standard output (None if not captured).142  stderr: The standard error (None if not captured).143Nc�6�WnW nW0nW@nR#r4)r�r5rHr8)r9r�r5rHr8s&&&&&r/r:�CompletedProcess.__init__�s���	�$�����r.c��RPVP4RPVP4.pVPe+VP	RPVP44VP144e+VP	RPVP14544RP\
V4PRPV44#)z	args={!r}zreturncode={!r}zstdout={!r}zstderr={!r}z{}({})z, )	�formatr�r5rHr�r8�typer!�join)r9r�s& r/r}�CompletedProcess.__repr__�s����"�"�4�9�9�-�!�(�(����9�;���;�;�"��K�K�
�,�,�T�[�[�9�:��;�;�"��K�K�
�,�,�T�[�[�9�:����t�D�z�2�2�D�I�I�d�O�D�Dr.c��VP'd7\VPVPVPVP4hR#)z6Raise CalledProcessError if the exit code is non-zero.N)r5rr�rHr8rCs&r/�check_returncode�!CompletedProcess.check_returncode�s6���?�?�?�$�T�_�_�d�i�i����%)�[�[�2�
2�r.)r�r5r8rHrN)r!r"r#r$rPr:r}�classmethod�types�GenericAlias�__class_getitem__r�r-rSrTs@r/rr�s2����	��E�$�E�$6�$6�7��2�2r.r��capture_outputr�c	���Ve(VPR4e\R4h\VR&V'dDVPR4fVPR4e\R4h\VR&\VR&\V/VB;_uu_4pVP	WR7wrxTP4p146T'd T147'd\Y�PYxR7hRRR4\XPX148XX4# \149dQp	TP
4\'dTP	4wT	nT	n	hTP4hRp	?	iTP
4h;i +'giL�;i)	a2Run command with arguments and return a CompletedProcess instance.150 151The returned instance will have attributes args, returncode, stdout and152stderr. By default, stdout and stderr are not captured, and those attributes153will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,154or pass capture_output=True to capture both.155 156If check is True and the exit code was non-zero, it raises a157CalledProcessError. The CalledProcessError object will have the return code158in the returncode attribute, and output & stderr attributes if those streams159were captured.160 161If timeout (seconds) is given and the process takes too long,162 a TimeoutExpired exception will be raised.163 164There is an optional argument "input", allowing you to165pass bytes or a string to the subprocess's stdin.  If you use this argument166you may not also use the Popen constructor's "stdin" argument, as167it will be used internally.168 169By default, all communication is in bytes, and therefore any "input" should170be bytes, and the stdout and stderr will be bytes. If in text mode, any171"input" should be a string, and stdout and stderr will be strings decoded172according to locale encoding, or by "encoding" if set. Text mode is173triggered by setting any of text, encoding, errors or universal_newlines.174 175The other arguments are the same as for the Popen constructor.176N�stdinz/stdin and input arguments may not both be used.rHr8z@stdout and stderr arguments may not be used with capture_output.r��r7r8)r�rBr�r�communicaterr��177_mswindowsrHr8r��pollrr�r)r�r�rXr�r�r��processrHr8�excr�s$$$$*,     r/r�r�sG��<
���:�:�g��*��N�O�O���w����:�:�h��+�v�z�z�(�/C�/O��4�5�
5���x����x��	�	�	$�V�	$�	$��	�$�0�0��0�H�N�F�&�,�,�.���W�$�W�l�l�,2�C�
C�/178%�2�G�L�L�'�6�6�B�B��-�
	��L�L�N��z�*1�)<�)<�)>�&��179�C�J�180
�������	��L�L�N���)181%�	$�s=�182E&�C7� E&�8E&�E&�7E#�AE
�
E#�#E&�&E6	c���.pRp\\PV4EF2p.pV'dVPR4RV9;'gRV9;'gV'*pV'dVPR4VF�pVR8XdVPV4KVR8Xd>VPR\	V4,^,4.pVPR4KaV'dVPV4.pVPV4K�	V'dVPV4V'gEKVPV4VPR4EK5	RP
V4#)aM183Translate a sequence of arguments into a command line184string, using the same rules as the MS C runtime:185 1861) Arguments are delimited by white space, which is either a187   space or a tab.188 1892) A string surrounded by double quotation marks is190   interpreted as a single argument, regardless of white space191   contained within.  A quoted string can be embedded in an192   argument.193 1943) A double quotation mark preceded by a backslash is195   interpreted as a literal double quotation mark.196 1974) Backslashes are interpreted literally, unless they198   immediately precede a double quotation mark.199 2005) If backslashes immediately precede a double quotation mark,201   every pair of backslashes is interpreted as a literal202   backslash.  If the number of backslashes is odd, the last203   backslash escapes the next double quotation mark as204   described in rule 3.205F� �	�"�\z\"r�)�mapr%�fsdecoder��lenr�r�)�seq�result�	needquoter��bs_buf�cs&     r/�list2cmdliner206Gs��<�F��I��2�;�;��$������M�M�#���C�Z�<�<�T�S�[�<�<��W�	���M�M�#���A��D�y��
�
�a� ��c���
�
�d�S��[�0��2�3����
�
�e�$���M�M�&�)��F��
�
�a� ��"��M�M�&�!��9��M�M�&�!��M�M�#��C%�F�7�7�6�?�r.r�r�c	��\VRR\WR7p^pVRRR8XdVRRpWC3# \d#pTPpTPpRp?L:Rp?ii;i)a�Return (exitcode, output) of executing cmd in a shell.207 208Execute the string 'cmd' in a shell with 'check_output' and209return a 2-tuple (status, output). The locale encoding is used210to decode the output and process newlines.211 212A trailing newline is stripped from the output.213The exit status for the command can be interpreted214according to the rules for the function 'wait'. Example:215 216>>> import subprocess217>>> subprocess.getstatusoutput('ls /bin/ls')218(0, '/bin/ls')219>>> subprocess.getstatusoutput('cat /bin/junk')220(1, 'cat: /bin/junk: No such file or directory')221>>> subprocess.getstatusoutput('/bin/junk')222(127, 'sh: /bin/junk: not found')223>>> subprocess.getstatusoutput('/bin/kill $$')224(-15, '')225T)�shellr�r8r�r�N�226�����)r��STDOUTrr7r5)r6r�r��data�exitcode�exs&$$   r/�getstatusoutputr�sh��*!��C�t�$�v�%-�>�����B�C�y�D���C�R�y���>����!��y�y���=�=���!�s�*�A�A�Ac�*�\WVR7^,#)a
Return output (stdout or stderr) of executing cmd in a shell.227 228Like getstatusoutput(), except the exit status is ignored and the return229value is a string containing the command's output.  Example:230 231>>> import subprocess232>>> subprocess.getoutput('ls /bin/ls')233'/bin/ls'234�r�r�)r)r6r�r�s&$$r/�	getoutputr�s���3�&�A�!�D�Dr.c�b�\'g\\R4'gR#\PP	R4;pR2359d\\
V44#\PR9dR#\P!R4pVP^R7p\V4^8wd\hV^,p\\\V^,PR444p\PR8XdVR	8Xd236VR8�dR#R# \\\ 3dR#i;i)
adCheck if posix_spawn() can be used for subprocess.237 238subprocess requires a posix_spawn() implementation that properly reports239errors to the parent process, & sets errno on the following failures:240 241* Process attribute actions failed.242* File actions failed.243* exec() failed.244 245Prefer an implementation which can use vfork() in some cases for best246performance.247�posix_spawnF�"_PYTHON_SUBPROCESS_USE_POSIX_SPAWNT�CS_GNU_LIBC_VERSION)�maxsplitr?�linux�glibc)�0�1)�darwin�sunos5)r��)r��hasattrr%�environr��boolrxr��platform�confstr�splitrrB�tupler�AttributeError�OSError)�_env�ver�parts�libc�versions     r/�_use_posix_spawnr1�s����z���]�3�3������� D�E�	E��*�T��C��I���248�|�|�+�+��
��j�j�.�/���	�	�1�	�%���u�:��?����Q�x����C��q�����!4�5�6���<�<�7�"�t�w��7�g�;M����
�J��0�
���
�s�7BD�D.�-D.�POSIX_SPAWN_CLOSEFROMc�`a�]tRtRtoRtRtR8RRRRRRRRR	RR249RRR7RR7R
R/	RlltRt]!]	P4t]R4t
]
PR4t
RtRtRt]P&]P*3RltRtRtR9RltRtRtR:RltR;RltRt]P@R4t!]"'dNRt#R t$R!t%R"t&R]'PP]'PR]'PT3R#lt+R$t,R%t-R&t.R't/R(t0R)t1]1t2R6t8Vt9R#R*t#R+t3R,t&]43R-lt5R]43R.lt+R/t6R0t,R1t/R2t7R3t0R4t1R5t2R6t8Vt9R#)<ri�a�Execute a child program in a new process.250 251For a complete description of the arguments see the Python documentation.252 253Arguments:254  args: A string, or a sequence of program arguments.255 256  bufsize: supplied as the buffering argument to the open() function when257      creating the stdin/stdout/stderr pipe file objects258 259  executable: A replacement program to execute.260 261  stdin, stdout and stderr: These specify the executed programs' standard262      input, standard output and standard error file handles, respectively.263 264  preexec_fn: (POSIX only) An object to be called in the child process265      just before the child is executed.266 267  close_fds: Controls closing or inheriting of file descriptors.268 269  shell: If true, the command will be executed through the shell.270 271  cwd: Sets the current directory before the child is executed.272 273  env: Defines the environment variables for the new process.274 275  text: If true, decode stdin, stdout and stderr using the given encoding276      (if set) or the system default otherwise.277 278  universal_newlines: Alias of text, provided for backwards compatibility.279 280  startupinfo and creationflags (Windows only)281 282  restore_signals (POSIX only)283 284  start_new_session (POSIX only)285 286  process_group (POSIX only)287 288  group (POSIX only)289 290  extra_groups (POSIX only)291 292  user (POSIX only)293 294  umask (POSIX only)295 296  pass_fds (POSIX only)297 298  encoding and errors: Text mode encoding and error handling to use for299      file objects stdin, stdout and stderr.300 301Attributes:302    stdin, stdout, stderr, pid, returncode303FN�user�group�extra_groupsr�r�r��umask�pipesize�
process_groupc	���\'g,\\P\P304R24h\
4\P!4Vn	RVn305RVnVfR"p\V\4'g\R4hV\Jd\!R4hVfR"p\V\4'g\R4h\"'dVe\!R4hMNV'd&V'g\$P&!R\(4R	pV
e\!R3064hV^8wd\!R4hWnRVnRVnRVnRVnRVnVVnVVnVVnVe)Ve%\=V4\=V48wd\?R4hT;'gT;'g
T;'gTVn VP@'dVf\C4;VnpR
Vn"RVn#VP@'dV^8XdR	pR"pMRpVfR"pRpVe�\I\JR4'g\!R4h\V\L4'd"^RI'pTPST4PTpM<\V\4'dTpM#\RPW\YV444hV^8d\!RV24hRpVe�\I\JR4'g\!R4h\V\L4'd\!R4h.pVF�p\V\L4'd2^RI'pTP[TPST4PT4KJ\V\4'dVP[V4Ks\RPW\YV444h	VFp V ^8gK\!RV 24h	Rp!Ve�\I\JR4'g\!R4h\V\L4'd"^RI.p"T"P_T4P`p!M$\V\4'dTp!M\R4hV!^8d\!RV!24hVPcWEV4wp#p$p%p&p'p(\"'d�V$R"8wd&\dPf!V$Pi4^4p$V%R"8wd&\dPf!V%Pi4^4p%V'R"8wd&\dPf!V'Pi4^4p'V$R"8wdZ\jPl!V$RV4VnVP@'d+\jPn!VP,R	XVVR7VnV%R"8wdX\jPl!V%RV4VnVP@'d)\jPn!VP.VVR 7VnV'R"8wdX\jPl!V'RV4VnVP@'d)\jPn!VP0VVR 7VnVPqWWxVW�W�V	V#V$V%V&V'V(VVVV!VVV4R# \Pd
\!R4hi;i \Pd
\!R4hi;i \Pd
\!R4hi;i \sRTP,TP.TP034F&p)T)Pu4K \dK$i;i	TPF'g�.p*T\v8XdT*P[T#4T\v8XdT*P[T&4T\v8XdT*P[T(4\ITR!4'dT*P[TPx4T*F`p+\"'d)\T+\z4'dT+P}4K8\JPt!T+4KP \dK^i;i	h;i)#zCreate new Popen instance.z does not support processes.NFzbufsize must be an integerz"STDOUT can only be used for stderrzpipesize must be an integerz0preexec_fn is not supported on Windows platformszpass_fds overriding close_fds.Tz2startupinfo is only supported on Windows platformsz4creationflags is only supported on Windows platformszlCannot disambiguate when both text and universal_newlines are supplied but different. Pass one or the other.g�?�setregidz>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_through�line_bufferingr�r��rbr�_devnullr)?�_can_fork_execr+r+�ENOTSUPr�r&r��	threading�Lock�
_waitpid_lock�_input�_communication_started�307isinstancerx�	TypeErrorrrBr�r�r��RuntimeWarningr�r�rHr8�pidr5r�r�r8r%r�	text_moder��_sigint_wait_secs�_closed_child_pipe_fdsr#r%�str�grp�ImportError�getgrnam�gr_gidr�r�r��pwd�getpwnam�pw_uid�_get_handles�msvcrt�open_osfhandlery�io�open�
TextIOWrapper�_execute_child�filter�closer�rBrpru),r9r��bufsize�308executabler�rHr8�309preexec_fn�	close_fdsr�cwd�envr��startupinfo�
creationflags�restore_signals�start_new_session�pass_fdsr4r5r6r�r�r�r7r8r9r@�gidrR�gids�extra_group�	gid_check�uidrV�p2cread�p2cwrite�c2pread�c2pwrite�errread�errwriter��to_close�fds,&&&&&&&&&&&&&&&&&&$$$$$$$$$                 r/r:�Popen.__init__1s:���~���
�
�#�,�,��/K�L��
�	�310�'�^�^�-������&+��#��?��G��'�3�'�'��8�9�9��V���A�B�B����H��(�C�(�(��9�:�:��:��%� �"-�.�.�&�311�	��
�
�>��O� �	��&� �"-�.�.���!� �"-�.�.��	���312������������� ��
���� ��
�
��!3�!?��'�(�D��J�6�!�#F�G�
G�"�I�I�V�I�I�t�I�I�7I����>�>�>�h�.�'5�'7�7�D�M�H�313"&���&+��#��>�>�>��!�|�!%����!&��� ��M������2�z�*�*� �"4�5�5��E�3�'�'�J��314�l�l�5�)�0�0���E�3�'�'���� N�!'���U��!4�6�6��Q�w� �#D�S�E�!J�K�K����#��2�{�+�+� �"E�F�F��L�#�.�.� �!F�G�G��D�+���k�3�/�/�7�"��K�K����[� 9� @� @�A���S�1�1��K�K��,�#�%9�%+�V�D��,=�%>�@�@� ,�&"�	��q�=�$�'H���%T�U�U�"������2�z�*�*� �"8�9�9��D�#�&�&�J���l�l�4�(�/�/���D�#�&�&���� E�F�F��Q�w� �#C�C�5�!I�J�J�&#�/�/��v�F�	��(�	�(�	�(��:��2�~�!�0�0����1B�A�F���"�}� �/�/����0@�!�D���"�}� �/�/����0@�!�D��6	��2�~��W�W�X�t�W�=��315��>�>�>�!#�!1�!1�$�*�*�D�+9�%-�f�">�D�J��"�}� �g�g�g�t�W�=����>�>�>�"$�"2�"2�4�;�;�%-�f�#>�D�K��"�}� �g�g�g�t�W�=����>�>�>�"$�"2�"2�4�;�;�%-�f�#>�D�K�
����*� (�#� +�E� '�� '�� '�� /� #�T�3�� 1�=�
B��o#�J�$�&I�J�J�J��8'�7�(�*6�7�7�7��8#�J�$�&I�J�J�J��P	��D�4�:�:�t�{�{�D�K�K�"H�I����G�G�I�������J��.�.�.����D�=��O�O�G�,��T�>��O�O�H�-��T�>��O�O�H�-��4��,�,��O�O�D�M�M�2�"�B��%�:�*�R��*@�*@��H�H�J��H�H�R�L��"�����
#�
�s��Y�6Y.�Z�5Z"�	AZ"�)AZ"�AZ"�Y+�.Z�Z�"2_7�['�%_7�'[6�2_7�5[6�6_7�
B_7�2_"�_7�316_"� _7�"_1�-_7�0_1�1_7c��RVPPRVPRVP:R2p\	V4^P8�dVR,R,pV#)�<z: returncode: z args: �>:N�LNz...>)r|r!r5r�r)r9�obj_reprs& r/r}�Popen.__repr__5s[������'�'�(�)��?�?�+�7�4�9�9�-�q�
B�	��x�=�2����}�v�-�H��r.c��VP#r4)rNrCs&r/r��Popen.universal_newlines@s���~�~�r.c�&�\V4VnR#r4)r%rN)r9r�s&&r/r�r�Fs���0�1��r.c�h�VPW#4pVPRR4PRR4#)z
317r
�
)�decode�replace)r9rr�r�s&&&&r/�_translate_newlines�Popen._translate_newlinesJs.���{�{�8�,���|�|�F�D�)�1�1�$��=�=r.c��V#r4r rCs&r/�	__enter__�Popen.__enter__Ns���r.c��VP'dVPP4VP'dVPP4VP'dVPP4V\8Xd8VP318^8�dVP
VP319R7^VnR#VP4R# \dL(i;i T\8XdITP320^8�d0TP
TP321R7M \dMi;i^TniTP4i;i)r=r�N)	rHrar8r��KeyboardInterruptrO�_waitrr�)r9�exc_typerL�	tracebacks&&&&r/�__exit__�Popen.__exit__Qs���;�;�;��K�K�����;�;�;��K�K����	��z�z�z��322�323� � �"��,�,��)�)�A�-���324�325�4�+A�+A�326�B�*+��&��	�	���*������,�,��)�)�A�-���327�328�4�+A�+A�329�B��)�����)*��&��	�	��sH�C+�,C+�#C�C(�'C(�+E�	D&�%E�&D4�1E�3D4�4Ec��VP'gR#VPf!V!RVP,\VR7VP	VR7VPf"\330e\331P
V4R#R#R#)Nzsubprocess %s is still running)�sourcer�)�_child_createdr5rM�ResourceWarningr�r�r�)r9�_maxsize�_warns&&&r/r��
Popen.__del__lsl���"�"�"���?�?�"�
�2�T�X�X�=�!�$�
0�	
���x��0��?�?�"�w�':��N�N�4� �(;�"r.c��\VR4'g9\P!\P\P4VnVP332#)rB)r#r%r]�devnull�O_RDWRrBrCs&r/�_get_devnull�Popen._get_devnull{s3���t�Z�(�(��G�G�B�J�J��	�	�:�D�M��}�}�r.c��V'dVPPV4VPP
4R# \dL*\d+pTP\P3338XdRp?LXhRp?ii;i \dR#\d,pTP\P3348XdRp?R#hRp?ii;ir4)r��write�BrokenPipeErrorr+r+�EINVALra)r9r�r�s&& r/�_stdin_write�Popen._stdin_write�s����
��335�336� � ��'�	��J�J�����#�
���
��9�9����,����
���	���	��y�y�E�L�L�(����		�sR�A�B�B�B�B�A>�=A>�>B�C	�C	�C	�C�C�C	c�\�VP'dV'd\R4hVEfVP'EgVPVPVP.PR4^8�d�RpRpVP'dVP
V4M�VP'd6VPP4pVPP4MFVP'd5VPP4pVPP4VP4W43#Ve\4V,pMRpVPWV4wr4RTnTPTPT4R7pY43# \ddTe'\TPTPT44pMTPp^TnTP!TR7h \"dhi;ii;i RTni;i \"d
pY(nhRp?ii;i)a�Interact with process: Send data to stdin and close it.337Read data from stdout and stderr, until end-of-file is338reached.  Wait for process to terminate.339 340The optional "input" argument should be data to be sent to the341child process, or None, if no data should be sent to the child.342communicate() returns a tuple (stdout, stderr).343 344By default, all communication is in bytes, and therefore any345"input" should be bytes, and the (stdout, stderr) will be bytes.346If in text mode (indicated by self.text_mode), any "input" should347be a string, and (stdout, stderr) will be strings decoded348according to locale encoding, or by "encoding" if set. Text mode349is triggered by setting any of text, encoding, errors or350universal_newlines.351z.Cannot send input after starting communicationNr�T)rIrBr�rHr8�countr��readrar��_time�_communicater��minrO�_remaining_timer�rrX)	r9r�rXrHr8�endtime�sigint_timeout�stsr�s	&&&      r/r��Popen.communicate�s���$�&�&�&�5��M�N�N�352
�O�D�$?�$?�$?�
�Z�Z����d�k�k�2�8�8��>�!�C��F��F��z�z�z��!�!�%�(��������)�)�+�����!�!�#��������)�)�+�����!�!�#��I�I�K�@���=�"��'�G�+����
3�!%�!2�!2�5�7�!K����"/3��+�
��i�i��(<�(<�W�(E�i�F��353����/%�

��&�%(��)?�)?�)-�)=�)=�g�)F�&H�N�&*�%;�%;�N�)*��&���J�J�~�J�6���&������

�� /3��+��"�
�%����
�sU�F�3!H�AH� G3�2H�3H�>H�H�H�H�	H�H+�H&�&H+c�"�VP4#)zKCheck if child process has terminated. Set and return returncode354attribute.)r�rCs&r/r��355Popen.poll�s���"�"�$�$r.c�0�VfR#V\4,356#)z5Convenience for _communicate when computing timeouts.N)r�)r9r�s&&r/r��Popen._remaining_time�s���?���U�W�$�$r.c���VfR#V'g\4V8�dQ\VPTV'dRPV4MRV'dRPV4R7hRR7hR#)z2Convenience for checking if a timeout has expired.Nr.r�)r�rr�r�)r9r��orig_timeout�357stdout_seq�358stderr_seq�skip_check_and_raises&&&&&&r/�_check_timeout�Popen._check_timeout�sf���?���5�7�W�#4� ��I�I�|�3=�3�8�8�J�/�4�3=�3�8�8�J�/�I�
I�DH�I�
I�$5r.c�4�Ve\4V,pVPVR7# \ddTe'\TPTPX44pMTPp^TnTPTR7h \dhi;ii;i)z=Wait for child process to terminate; returns self.returncode.r�)r�r�r�r�rOr�r)r9rXr�r�s&&  r/r��359Popen.wait�s������g��'�G�	��:�:�g�:�.�.�� �	�360�"�!$�T�%;�%;�%)�%9�%9�'�%B�"D��"&�!7�!7��%&�D�"�
��361�362�>�363�2�
��"�
���
��	�s.�)�AB�2B�B�B�B�B�Bc��\VRR4p\P!4;_uu_4p\'dhVR8wdVP	VP3644VR8wdVP	VP3654VR8wdVP	VP3664M�VR8wd.VR8wd'W8wd!VP	\PV4VR8wd.VR8wd'WG8wd!VP	\PV4VR8wd.VR8wd'Wg8wd!VP	\PV4Ve!VP	\PV4RRR4RVnR# +'giL;i)rBNTr)	r��367contextlib�	ExitStackr��callbackrur%rarP)	r9rrrsrtrurvrw�368devnull_fd�stacks	&&&&&&&  r/�_close_pipe_fds�Popen._close_pipe_fdss369��370�T�:�t�4�371�
�
!�
!�
#�
#�u��z��b�=��N�N�7�=�=�1��r�>��N�N�8�>�>�2��r�>��N�N�8�>�>�2���b�=�X��^��8M��N�N�2�8�8�W�5��r�>�g��m��8N��N�N�2�8�8�X�6��r�>�g��m��8N��N�N�2�8�8�X�6��%����r�x�x��4�#$�('+��#�)$�
#�s�D4E0�0F	c#�R"�.pVx�R# \TR4'dTPTP4T=TF`p\'d)\	T\3724'dTP
4K8\P!T4KP \dK^i;i	h;i5i)zCHelper to ensure file descriptors opened in _get_handles are closedrBN)373r#r�rBr�rJrprur%rar+)r9rxrys&  r/�_on_error_fd_closer�Popen._on_error_fd_closer.s������	��N��	��t�Z�(�(�����
�
�.��M����!�z�j��V�&<�&<����374������������
�
�sI�B'��B'�6B$�2B�5B$�7B�
B$�B�B$�B�B$�$B'c���VfVfVfR#RRrTRRrvRRr�VP4;_uu_4p375Vfu\P!\P4pVfL\P!R^4wrK\V4pV376P
V4\P!V4M�V\8XdB\P!R^4wrE\V4\V4rTV377PWE34M�V\8Xd&\P!VP44pMQ\V\4'd\P!V4pM$\P!VP!44pVP#V4pVfu\P!\P$4pVfL\P!R^4wr�\V4pV378P
V4\P!V4M�V\8XdB\P!R^4wrg\V4\V4rvV379PWg34M�V\8Xd&\P!VP44pMQ\V\4'd\P!V4pM$\P!VP!44pVP#V4pVfu\P!\P&4p	V	fL\P!R^4wr�\V	4p	V380P
V	4\P!V4M�V\8XdB\P!R^4wr�\V4\V	4r�V381PW�34M�V\(8XdTp	M�V\8Xd&\P!VP44p	MQ\V\4'd\P!V4p	M$\P!VP!44p	VP#V	4p	RRR4WEWgW�3# +'giL;i)�dConstruct and return tuple with IO objects:382p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite383Nr)rrrrrr)r�r�GetStdHandler384�385CreatePiperpr�rtr�r��DEVNULLrZ�
get_osfhandler�rJrx�fileno�_make_inheritablerrr)r9r�rHr8rrrsrtrurvrw�
err_close_fds�_s&&&&        r/rY�Popen._get_handlesFsk���}���F�N�/�/� "�B�X� "�B�X� "�B�X��)�)�+�+�}��=�%�2�2�7�3K�3K�L�G���%,�%7�%7��a�%@�386��"(��/��%�,�,�W�5��+�+�A�.���d�]�(/�(:�(:�4��(C�%�G�(.�w����9I�X�!�(�(�'�)<�=��g�%�$�2�2�4�3D�3D�3F�G�G���s�+�+�$�2�2�5�9�G�%�2�2�5�<�<�>�B�G��0�0��9���>�&�3�3�G�4M�4M�N�H��'�&-�&8�&8��q�&A���#)�(�#3��%�,�,�X�6��+�+�A�.���t�^�(/�(:�(:�4��(C�%�G�(.�w����9I�X�!�(�(�'�)<�=��w�&�%�3�3�D�4E�4E�4G�H�H����,�,�%�3�3�F�;�H� &�3�3�F�M�M�O�D�H��1�1�(�;���>�&�3�3�G�4L�4L�M�H��'�&-�&8�&8��q�&A���#)�(�#3��%�,�,�X�6��+�+�A�.���t�^�(/�(:�(:�4��(C�%�G�(.�w����9I�X�!�(�(�'�)<�=��v�%�'�H��w�&�%�3�3�D�4E�4E�4G�H�H����,�,�%�3�3�F�;�H� &�3�3�F�M�M�O�D�H��1�1�(�;��{,�~���'�
'�,�+�s�PQ�Q	c��\P!\P!4V\P!4^^\P4p\	V4#)z2Return a duplicate of handle, which is inheritable)r�DuplicateHandle�GetCurrentProcess�DUPLICATE_SAME_ACCESSrp)r9�handle�hs&& r/r��Popen._make_inheritable�sE���'�'��)�)�+�V��)�)�+�Q���-�-�/�A��!�9�r.c��\VUu0uF>pV^,^8wg,\P!V4\P8wgK<VkK@	up4#uupi)z�Filter out console handles that can't be used387in lpAttributeList["handle_list"] and make sure the list388isn't empty. This also removes duplicate handles.)rlr�GetFileType�FILE_TYPE_CHAR)r9rgr�s&& r/�_filter_handle_list�Popen._filter_handle_list�sX���k�4�k�F�"�S�L�C�/�#�/�/��7�#�2�2�3� ��k�4�5�
5��4s�9A�Ac���V'dQR4h\V\4'dM�\V\4'd!V389'd\R4h\	V.4pMK\V\390P4'd!V391'd\R4h\	V.4pM\	V4pVe\392P!V4pVf\4pMVP4pRW�V39pV'd;V;P\P,un393W�n
W�nVVnVP p\#T;'dRV9;'d394VR,4pV'gV'd�V'd�Vf395/;pVn\%VP'R.44;pVR&V'd(V\)V4\)V4\)V4.,
pVP+V4VR&V'd&V'g\,P.!R\04RpV396'EdV;P\P2,un397\P4VnV'g�\398P8P'R	4pV'gr\399P8P'R400R4p\401P:P=VRR
4p\402P:P?V4'g\AR4h\403P:P?V4'dTpMTpRPCVV4pVe\404P!V4p\DPF!RW!Wg4\PH!W!RR\)V'*4V	VVV4	wppp p!VPKW�W�VV4RVn&\OV4Vn(V Vn)\PT!V4R# TPKY�Y�TT4i;i)z$Execute program (MS Windows version)z"pass_fds not supported on Windows.z$bytes args is not allowed on Windows�0path-like args is not allowed when shell is trueNrgr�z?startupinfo.lpAttributeList['handle_list'] overriding close_fdsF�ComSpec�405SystemRootr��System32zcmd.exez:shell not found: neither %ComSpec% nor %SystemRoot% is setz406{} /c "{}"�subprocess.PopenTr)+rJrQ�bytesrKr407r%�PathLikerrrkr`rrrarbrcrer%rlr�rxr�r�r�rLrr
rdr$�pathr��isabs�FileNotFoundErrorr�r��audit�
CreateProcessr�r�rp�_handlerMrt)"r9r�rcrdrerlrfrgrhrirrrrsrtrurvrw�unused_restore_signals�408unused_gid�unused_gids�409unused_uid�unused_umask�unused_start_new_session�unused_process_group�use_std_handles�attribute_list�have_handle_listrg�comspec�system_root�hp�htrM�tids"&&&&&&&&&&&&&&&&&&&&&&&&          r/r_�Popen._execute_child�sI�� �E�!E�E�<��$��$�$���D�%�(�(��#�$J�K�K�#�T�F�+���D�"�+�+�.�.��#�%4�5�5�#�T�F�+��#�D�)���%��[�[��4�410��"�)�m��*�.�.�0�� ��H�(E�E�O���#�#�w�'C�'C�C�#�(/�%�)1�&�(0��%�(�8�8�N�#�N�%B�%B�$1�^�$C�%B�%B�$2�=�$A� C��411 �O�	�!�)�CE�E�N�[�%@���+�+�M�2�>�?�@��n�]�;�#��C��L�#�h�-��X��#O�O�K�!%�!9�!9�+�!F��A���$� �
�
�'=�>L�N�!&�I��u��#�#�w�'C�'C�C�#�*1�/�/��'�!�!�j�j�n�n�Y�7�G�"�&(�j�j�n�n�\�2�&F��"$�'�'�,�,�{�J�	�"R��!�w�w�}�}�W�5�5�"3�4p�"q�q��w�w�}�}�W�-�-�%,�412��(�G�#�*�*�G�T�:�����k�k�#�&���I�I�(�*�C�E�
8�#*�#8�#8��)-�t�),��]�);�)6�),�),�)4�$6� ��B��S��$�$�W�%,�%,�h�8�413#'�D��!�"�:�D�L��D�H�����#���$�$�W�%,�%,�h�8�s�(0O"�"O8c��VPf0V!VP^4V8XdV!VP4VnVP#)z�Check if child process has terminated.  Returns returncode414attribute.415 416This method is called by __del__, so it can only refer to objects417in its local scope.418 419)r5r�)r9r��_WaitForSingleObject�_WAIT_OBJECT_0�_GetExitCodeProcesss&&&&&r/r��Popen._internal_poll*s;�����&�'����a�8�N�J�&9�$�,�,�&G�D�O��?�?�"r.c�z�Vf\PpMV^8:d^pM\VR,4pVPfr\P!VP420V4pV\P8Xd\VPV4h\P!VP4214VnVP#)z-Internal implementation of wait() on Windows.i�)422r�INFINITErxr5�WaitForSingleObjectr��WAIT_TIMEOUTrr��GetExitCodeProcess)r9rX�timeout_millisrs&&  r/r��Popen._wait;s�����!(�!1�!1���A��!"��!$�W�t�^�!4�����&� �4�4�T�\�\�5C�E���W�1�1�1�(����G�<�<�")�"<�"<�T�\�\�"J����?�?�"r.c�d�VPVP44VP4R#r4)r�r�ra)r9�fh�buffers&&&r/�
_readerthread�Popen._readerthreadMs���M�M�"�'�'�)�$��H�H�Jr.c�(�VPV4R#r4)r��r9r�s&&r/�
_writerthread�Popen._writerthreadRs�����e�$r.c��VP'd�\VR4'gp.Vn\P!VP423VPVP3R7VnRVPnVPP4VP'd�\VR4'gp.Vn424\P!VP425VPVP3R7VnRVPnVPP4VP'df\VR4'gT\P!VPV3R7VnRVPnVPP4\VR4'daVPPVP!V44VPP#4'd\%VP&V4hVPeaVPPVP!V44VPP#4'd\%VP&V4hVPeaVPPVP!V44VPP#4'd\%VP&V4hRpRpVP'd'VPpVPP)4VP'd'VPpVPP)4V'd426V^,MRpV'd427V^,MRpWE3#)�_stdout_buff)�targetr�T�_stderr_buff�
_stdin_threadN)rHr#rrE�Threadr
�
stdout_thread�daemon�startr8r�
stderr_threadr�rrr�r��is_aliverr�ra)r9r�r�r�rHr8s&&&&  r/r��Popen._communicateVs����{�{�{�7�4��#@�#@�$&��!�!�(�(��0B�0B�/3�{�{�D�<M�<M�.N�P��"�-1��"�"�)��"�"�(�(�*��{�{�{�7�4��#@�#@�$&��!�!�(�(��0B�0B�/3�{�{�D�<M�<M�.N�P��"�-1��"�"�)��"�"�(�(�*�428�z�z�z�'�$��"@�"@�!�(�(��0B�0B�/4�h�8��"�-1��"�"�)��"�"�(�(�*�429�t�_�-�-��"�"�'�'��(<�(<�W�(E�F��%�%�.�.�0�0�(����L�A�A�430�{�{�&��"�"�'�'��(<�(<�W�(E�F��%�%�.�.�0�0�(����L�A�A��{�{�&��"�"�'�'��(<�(<�W�(E�F��%�%�.�.�0�0�(����L�A�A��F��F��{�{�{��*�*�����!�!�#��{�{�{��*�*�����!�!�#�#)�V�A�Y�d�F�"(�V�A�Y�d�F��#�#r.c��VPeR#V\P8XdVP4R#V\P8Xd2\431P!VP\P4R#V\P8Xd2\432P!VP\P4R#\RPV44h)�Send a signal to the process.NzUnsupported signal: {})r5r@�SIGTERM�	terminate�CTRL_C_EVENTr%r�rM�CTRL_BREAK_EVENTrBr��r9�sigs&&r/�send_signal�Popen.send_signal�s������*���f�n�n�$���� ���+�+�+�������&�"5�"5�6���/�/�/�������&�"9�"9�:� �!9�!@�!@��!E�F�Fr.c��VPeR#\P!VP^4R# \dA\P433!TP4pT\P8XdhYnR#i;i)zTerminates the process.N)r5r�TerminateProcessr��PermissionErrorr�STILL_ACTIVE)r9�rcs& r/r"�Popen.terminate�se�����*��
%��(�(����q�9��"�
%��/�/����=����-�-�-��"$��

%�s�!5�AB�?Bc���RRrTRRrvRRr�VP4;_uu_4p434VfM�V\8Xd�\P!4wrEV435P	WE34VP436^8�dG\
\R4'd1\P!V\PVP4374MEV\8XdVP4pM)\V\4'dTpMVP4pVfM�V\8Xd�\P!4wrgV438P	Wg34VP439^8�dG\
\R4'd1\P!V\PVP4404MEV\8XdVP4pM)\V\4'dTpMVP4pVfEMV\8Xd�\P!4wr�V441P	W�34VP442^8�dG\
\R4'd1\P!V	\PVP4434MyV\8Xd*VR8wdTp	Md\P P4p	MEV\8XdVP4p	M)\V\4'dTp	MVP4p	RRR4WEWgW�3# +'giL;i)r�N�F_SETPIPE_SZr)r�r�r%�piper�r8r#�fcntlr0r�r�rJrxr�rr��444__stdout__)r9r�rHr8rrrsrtrurvrwr�s&&&&       r/rYr��s8��!#�B�X� "�B�X� "�B�X��)�)�+�+�}��=���d�]�(*���	�%�G�!�(�(�'�)<�=��}�}�q�(�W�U�N�-K�-K����H�e�.@�.@�$�-�-�P���g�%�"�/�/�1�G���s�+�+�#�G�$�l�l�n�G��>���t�^�(*���	�%�G�!�(�(�'�)<�=��}�}�q�(�W�U�N�-K�-K����H�e�.@�.@�$�-�-�P���w�&�#�0�0�2�H����,�,�%�H� &�}�}��H��>���t�^�(*���	�%�G�!�(�(�'�)<�=��}�}�q�(�W�U�N�-K�-K����H�e�.@�.@�$�-�-�P���v�%��2�~�#+��#&�>�>�#8�#8�#:���w�&�#�0�0�2�H����,�,�%�H� &�}�}��H�c,�f���'�
'�g,�+�s�J8K'�'K7	c�P�/pV'd8.p
RF+p\\VR4pVfKV
PV4K-	W�R&.pWxV4453F-pVR8wgKVP\PV34K/	V^3V	^3V^33F1wppVR8wgKVP\P446VV34K3	V'd"VP\P^34V'dVVR&\P!W!V3/VBVnRVn	VPWgW�W�4R#)z'Execute program using os.posix_spawn().N�	setsigdef�file_actionsT)�SIGPIPE�SIGXFZ�SIGXFSZr)r�r@r�r%�POSIX_SPAWN_CLOSE�POSIX_SPAWN_DUP2r2rrMr�r�)r9r�rcrgrjrerrrsrtrurvrwr��sigset�signame�signumr6ry�fd2s&&&&&&&&&&&&       r/�_posix_spawn�Popen._posix_spawn�s%��447�F����?�G�$�V�W�d�;�F��)��
�
�f�-� @�'-�{�#��L��'�2����8� �'�'��)=�)=�r�(B�C�3��!���1�
��1�
����C�448��8� �'�'��)<�)<�b�#�(F�G�
���#�#�R�%=�%=�q�$A�B��)5��~�&��~�~�j��F�v�F�D�H�"&�D��� � ��!(�!(�
4r.c�8a�\V\\34'dV.pMB\V\P4'dV449'd\R4hV.pM\
V4pV450'd3\\R4'dRMRpVR.V,pS'dSV^&Sf451V^,o\P!RSWV4\'d�\PPS4'd�Vf�V'd
\'dtV'glVfhVR8XgV^8�dZVR8XgV^8�dLVR8XgV^8�d>V'g6VR8Xd/Vf+Vf'Vf#V^8dVPVSVVVW�W�VV4R#Sp\P!4wpp.pV^8d*VP!V4\P"!V4pK0VFp\P$!V4K	Vey.pVP'4Fawpp \P(!V4pRV9d\+R	4hVP!VR,\P(!V 4,4Kc	MRp\P(!S4o\PPS4'dS3p!MZ\,;QJd+.V3R452l\P.!V44FNK	5M$!V3R453l\P.!V444p!\1V4p"V"P3V4\5VV!V\-\7\9\:V"444VVW�W�VVVVVVVVVVVV4VnRVn\P$!V4VPAW�W�VV4\C4p#\PD!VR4p$V#V$,
p#V$'d\GV#4R8�gK;\P$!T4T#'Ed*\PH!TP<^4wp%p&T%TP<8XdTPKT&4M\PLTn'T#PSR
^4wp'p(p)T)PU4p)\Y\ZT'PUR4\\4p*\_T*\`4'dcT('d[\;T(^4p+T)R8XdRp)Tp,MT)R8XdRp)Rp,MTp,T+^8wd\Pb!T+4p)T,eT*!T+T)T,4hT*!T+T)4hT*!T)4hR# \P$!T4i;i \P$!T4i;i \PdELi;i \*d#Rp'Rp(RPW\T#44p)ELi;i)zExecute program (POSIX version)r��getandroidapilevelz/system/bin/shz/bin/shz-cNr��=z!illegal environment variable namec3�<"�TF9p\PP\P!V4S4x�K;	R#5ir4)r%r�r��fsencode)�.0�dirrcs& �r/�	<genexpr>�'Popen._execute_child.<locals>.<genexpr>{s3����0>�'<���G�G�L�L����S�)9�:�F�F�'<�s�AATiP��:sSubprocessError�0z#Bad exception data from child: {!r}�asciiznoexec:chdirr��noexecr)2rJrQr�r%r�rKrlr#r�r��_USE_POSIX_SPAWNr��dirname�_HAVE_POSIX_SPAWN_CLOSEFROMr@r1r��duprar�rFrBr)�
get_exec_path�set�add�454_fork_execr�rrxrMr�r��	bytearrayr�rr&�_handle_exitstatusr�r5�ChildProcessErrorr(r�r�r��builtinsr�455issubclassr+�strerror)-r9r�rcrdrerlrfrgrhrirrrrsrtrurvrwrjrmrnrqr7rkr9�456unix_shell�orig_executable�errpipe_read�
errpipe_write�low_fds_to_close�low_fd�env_list�kr��executable_list�fds_to_keep�errpipe_data�partrMr��exception_name�	hex_errno�err_msg�child_exception_type�	errno_num�err_filenames-&&f&&&&&&&&&&&&&&&&&&&&&                     r/r_r�"s�����$��e��-�-��v���D�"�+�+�.�.��#�%4�5�5��v���D�z���"�#�';�<�<�/�BK��"�D�)�D�0���(�D��G��!�!�!�W�457��I�I�(�*�d��E� � ������458�3�3�"�*�&�*E�*E�$��� �B��'�A�+�!�R��8�a�<�!�R��8�a�<�-�%��+���������	��!�!�$�459�C��)�")�")�")�8�5��(�O�460+-�'�'�)�'�L�-�!���!�#� �'�'�
�6� "���}� 5�
�*������ �+�7
'�&,���#%��$'�I�I�K�D�A�q� "���A��A�#�q�y�&0�1T�&U� U�$�O�O�A��H�r�{�{�1�~�,E�F�	%0�$(��!#���Z�!8�J��w�w���z�2�2�+5�-��+0�%�0>�')�'7�'7��'<�0>�%�%�0>�')�'7�'7��'<�0>�+>��#&�h�-�K��O�O�M�2�)� �/�%�u�V�C��[�4I�-J�'K���#�w�#�X�(�-�+�->�)�3��c�5�&�	 (�D�H�+/�D�'��H�H�]�+��$�$�W�%,�%,�h�8� )�{����7�7�<��7�D� �D�(�L��3�|�#4�u�#<������&��|��!�z�z�$�(�(�A�6�H�C���d�h�h���/�/��4�*-�+�+���7�(�.�.�t�Q�7�7�N�I�w�461&�n�n�.�G�(/� �.�"7�"7��"@�'�()�$��2�G�<�<�� #�I�r� 2�I��.�0�"$��'*�� �H�,�"$��'+��'6�� �A�~�"$�+�+�i�"8��#�/�2�9�g�|�T�T�2�9�g�F�F�*�7�3�3�U��%�H�H�]�+�� ����&��)�����"�7�%7�N� $�I�C�J�J�"'��"5�7�G�7�sd�-B8T$�&T$�5B5T$�*AT?�
T?�T?�:AU�U�&U,�$T<�<T?�?U�U)�(U)�,)V�Vc��VPV4'dVPV4)VnR#VPV4VnR#)�:All callers to this function MUST hold self._waitpid_lock.N)r(r)r5r')r9r�rs&&&r/rX�Popen._handle_exitstatus�s<���#�#�C�(�(�#,�#5�#5�c�#:�":���"+�"B�"B�3�"G��r.c��VPf�VPPR4'gR#VPe'VPVPP4#VP	VP462VP4wr4W0P4638XdVPV4TPP4TP#VP# \d<pTeYnRp?LLTPTP8Xd^TnRp?LsRp?ii;i TPP4i;i)z�Check if child process has terminated.  Returns returncode464attribute.465 466This method is called by __del__, so it cannot reference anything467outside of the local scope (nor can any methods it calls).468 469NF)r5rG�acquire�releaser&rMr*rXr+r+r,)r9r�rrMr��es&&&   r/r�r�s�����&��)�)�1�1�%�8�8� �1����2�#����&�&�.�.�0� )�0�0����9�;L�;L�M�H�C��h�h���/�/��4��&�&�.�.�0��?�?�"�4�?�?�"���	,�!�-�*4������I�$4�$4�4�+,�����	,���&�&�.�.�0�s<�C"�'A	C"�"D(�-470D#�7D+�<"D#�D+�#D(�(D+�+Ec��\P!VPV4wr#W#3# \dTPp^pY#3#i;i)rp)r%r&rMrY)r9�471wait_flagsrMr�s&&  r/�	_try_wait�Popen._try_wait�sP��
��Z�Z����*�=�472���:���
%�
��h�h�����:��

�s�#(�A�Ac��VPe
VP#VEed\4V,pRpVPPR4'd�VPe(VPP	4VP#VP\P4wrEW@P8Xg473V^8XgQhW@P8Xd9VPV4VPP	4VP#VPP	4VPV4pV^8:d\VPV4h\V^,VR4p\P!V4EKPVPfwVP;_uu_4VPeRRR4VP#VP^4wrEW@P8XdVPV4RRR4K�VP# TPP	4i;i +'giK�;i)z+Internal implementation of wait() on POSIX.Ng����Mb@?Fg�������?)r5r�rGrsrtrxr%r*rMrXr�rr�r��time�sleep)r9rXr��delayrMr��	remainings&&     r/r�r	s������*����&��"��'�G�+������)�)�1�1�%�8�8�	9�#���:� %�!�.�.�6�6�8�"�?�?�"�/*.����474�475�)C�J�S�#&�(�(�?�c�Q�h�>�#>�"�h�h�� $� 7� 7�� <� %� �.�.�6�6�8�"�?�?�"�+ /�!�.�.�6�6�8� $� 4� 4�W� =�I� �A�~�,�T�Y�Y��@�@����	�9�c�:�E��J�J�u�%��o�o�-��+�+�+��?�?�6�!�,��?�?�"�
&*�^�^�A�%6�476���(�(�?� �3�3�C�8�,�+��?�?�"��#!�.�.�6�6�8��,�+�+�s%�H�AH�%H2�	4H2�H/�2I	c477�
�VP'dQVP'g?VPP4V'gVPP
4RpRpVP'g^/VnVP'd.VPVP&VP'd.VPVP&VP'dVPVP,pVP'dVPVP,pVPV4VP'dR\VP\4'g\VP4pMVPPR4p\4;_uu_4pVP'dYVPP478'g=VP'd+VP!VP\"P$4VP'dGVPP479'g+VP!VP\"P&4VP'dGVPP480'g+VP!VP\"P&4VP)4'Ed�VP+V4pVe'V^8:d VP-W#WERR7\/R4hVP1V4p	VP-W#WE4V	EF�wr�V481P2VPJd�XVP4VP4\6,pV;P4\8P:!V482P<V4,
unVP4\?V48�d8VPAV483P24V484P2P
4K�K�V485P2VPVP39gK�\8PB!V486P<R4p
V
'g6VPAV487P24V488P2P
4VPV489P2,PEV
4EK�	EKRRR4VPGVP+V4R7TeRPMT4pTeRPMT4pTPN'dTe<TPQTTPPRTPPT4pTe<TPQTTPPRTPPT4pYE3# \dEL�\d"TPP490'ghEL�i;i \dEL�i;i \d;TPAT491P24T492P2P
4EKi;i +'giEL�;i \Hd
pY>n%hRp?ii;i)Nr�T)r�zN_check_timeout(..., skip_check_and_raise=True) failed to raise TimeoutExpired.i�r�r.)+r�rI�flushr�rBrsra�_fileobj2outputrHr8�_save_inputrHrJ�493memoryview�cast�_PopenSelector�register�	selectors�EVENT_WRITE�494EVENT_READ�get_mapr�r��RuntimeError�select�fileobj�
_input_offset�	_PIPE_BUFr%r�ryr�495unregisterr�r�r�rrXr�rNr�r�r�)r9r�r�r�rHr8�496input_view�selectorrX�ready�key�events�chunkrr�s&&&&           r/r�r-s����z�z�z�$�"=�"=�"=���J�J�$�$�&����497�498�(�(�*��F��F��.�.�.�')��$��;�;�;�8:�D�(�(����5��;�;�;�8:�D�(�(����5��{�{�{��-�-�d�k�k�:���{�{�{��-�-�d�k�k�:�����U�#��{�{�{�!�$�+�+�z�:�:�!+�D�K�K�!8�J�!%���!1�!1�#�!6�J��!�!�X��:�:�:�d�j�j�&7�&7�&7�D�K�K�K��%�%�d�j�j�)�2G�2G�H��;�;�;�t�{�{�'9�'9�'9��%�%�d�k�k�9�3G�3G�H��;�;�;�t�{�{�'9�'9�'9��%�%�d�k�k�9�3G�3G�H��&�&�(�(�"�2�2�7�;�G��*�w�!�|��+�+�G�,2�AE�,�G�+�>�?�?�%�O�O�G�4�E��'�'��v�N�499(-����;�;�$�*�*�4�$.�t�/A�/A�/3�/A�/A�I�/M�%O�E�8� $� 2� 2�b�h�h�s�v�v�u�6M� M� 2�500$(�#5�#5��Z��#H�$,�$7�$7����$D�$'�K�K�$5�$5�$7�$I�!�[�[�T�[�[�$�+�+�,F�F�#%�7�7�3�6�6�5�#9�D�#'� (� 3� 3�C�K�K� @� #��� 1� 1� 3� �0�0����=�D�D�T�J�%(-�!)�"�V
��	�	�$�"6�"6�w�"?�	�@��!����&�)���!����&�)���~�~�~��%�!�5�5�f�6:�k�k�6J�6J�6:�k�k�6H�6H�J�F��%�!�5�5�f�6:�k�k�6J�6J�6:�k�k�6H�6H�J�F��#�#��O'���!���:�:�,�,�,��-���+�����r$3�4� (� 3� 3�C�K�K� @� #��� 1� 1� 3� 3�4��="�!�!��Z"�
�*����
�s��V?�	W;�:.Y�)Y�;;Y�7Y�;Y�Y�+AY�,B$Y�8X
�	A7Y�(Y�.A)Y�!!Y)�?W8�
W8�W8�3W8�7W8�;X501�	X502�
AY	�
Y�Y	�Y�Y&	�)Z�4Y;�;Zc�.�VP'd�VPfs^VnWnVe`VP'dLVPP	VPP503VPP4VnR#R#R#R#R#r4)r�rHr�rN�encoder�r�rs&&r/r��Popen._save_input�sp���z�z�z�d�k�k�1�%&��"�#���$�����"&�+�+�"4�"4�T�Z�Z�5H�5H�59�Z�Z�5F�5F�#H�D�K�*8�$�2�zr.c��VP4VPeR#\P!VPV4R# \504dR#i;i)r N)r�r5r%r�rM�ProcessLookupErrorr%s&&r/r'r(�sC��$
�I�I�K����*��505
�������#�&��%�
��
�s�!A�A�Ac�D�VP\P4R#)z/Terminate the process with SIGTERM506            N)r'r@r!rCs&r/r"r.����
���V�^�^�,r.c�D�VP\P4R#)z*Kill the process with SIGKILL507            N)r'r@�SIGKILLrCs&r/r��508Popen.kill�r�r.)r�rPrIrBr�r�rHr�rOrrrrGr�r�r�rMr8r5r8rr�rHrrNr)rNNNNNTFNNNNr=TFr rN)Fr4):r!r"r#r$rPr�r:r}r�r�r�r�rQr�rRr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��contextmanagerr�r�rYr�r�r_rr�
WAIT_OBJECT_0rr�r�r
rr�r'r"r�r@rrXrxr�r-rSrTs@r/rr�s�����6�n�N�B�'+�
B�37�
B�FJ�
B��B�(,�B�37�B�?A�B�LN�B� $�B�H�$�E�$6�$6�7��
����509���2��2�>���6 #�{�{�(�-�-�
!��510�2D �N%�%�	I��.+�:������&�L	'�^	�511	5�}	$�~-1�%,�%@�%@�&�4�4�$+�$>�$>�	#�"	#�$	�512	%�?	$�B	G�
	%���=	'�@&	4�Pg	4�T5>�	H�-1�I�	#�D513	�&	#�Rm	$�`		H�	�@	-�514	-�	-r.)rr�rr�r�rrr�r�rr�rrr>�ios�tvos�wasi�watchos�515emscripten)rr	r516rrr
rrrrrrrrrrrrrrrr����������)UrPrZr+r\r�r%r{r@r�rEr�r�rr�r�r2rS�__all__rZr��ModuleNotFoundErrorr&rCrrr	r517rrr
rrrrrrrrrrrrrrr��_posixsubprocessrrVrr�r��	Exceptionrrrrrxrpr�r�r#r�r��SelectSelectorr�r�r�rr�r�r�r�r�r�r��objectrr�r518rrr1rOrQrr r.r/�<module>r�s[�� �D��	�
�	��
�519����#����520D�����J����%U�U��
��	O�	O�	O�	O�	O�	O��N�N�521N�522O��<�	"�	"�	"�	"���'�i�&�"��"�J�_��8�:�:�.���,��523�C�0�I�524�y�.�)�)�"�/�/��"�1�1����G�
��G��525��	��526���;�|$�(�T��"
�&2 �T�2 �j!2�v�!2�HCC��CC�#(�CC�26�CC�>C�CC�LC�R�T��$��@527E�t�528E�D�529E�0�j$�%��%�b�*A�B��Z-�Z-��y���E������J��s#�F?�G�?	G�G�	G�G
codekingpro/portable-devtools · Team Ai