Mini Kabibi Habibi

Current Path : C:/Users/ITO/AppData/Local/Programs/Python/Python314/Lib/__pycache__/
Upload File :
Current File : C:/Users/ITO/AppData/Local/Programs/Python/Python314/Lib/__pycache__/subprocess.cpython-314.pyc

+
��hf���Rt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RI	t	^RI
t
^RIt^RIHt
^RIt^RIt.R/Ot^RItRt]P*R09t]'dE^RIt^R
IHtHtHtHtHtHtHtHtH 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
R4t0M
!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 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�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]P
t]Pt]Pt]Pt]Pt	]
PtRtR#)�	_del_safe�N)
�__name__�
__module__�__qualname__�__firstlineno__�os�waitpid�waitstatus_to_exitcode�
WIFSTOPPED�WSTOPSIG�WNOHANG�errno�ECHILD�__static_attributes__r ��FC:\Users\ITO\AppData\Local\Programs\Python\Python314\Lib\subprocess.pyrrls;���j�j�G�%'�%>�%>�"����J��{�{�H��j�j�G��\�\�Fr.rc�B�]tRt^ttRtRtRtRtRt]	Pt
RtR#)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]PR4tRt
VtR#)	rz�Raised when run() is called with check=True and the process
returns a non-zero exit status.

Attributes:
  cmd, returncode, stdout, stderr, output
Nc�6�WnW nW0nW@nR#�N)�
returncode�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�
ValueError�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@������
/������]�]���r.c�ha�]tRt^�toRtRRltRt]R4t]PR4tRt
VtR#)	rz�This exception is raised when the timeout expires while waiting for a
child process.

Attributes:
    cmd, output, stdout, stderr, timeout
Nc�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	tR
tVtR#)r�dwFlags�	hStdInputN�
hStdOutput�	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&\VPVP
VP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�
	:�
	:r.c�Ta�]tRt^�toRt]P3RltRtRt	]t
RtVt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�	"�
	/�	C��r.rp�PIPE_BUFi�PollSelectorc��R#r4r r r.r/�_cleanupr�	s��r.c���\fR#\R,F?pVP\PR7pVfK)\P	V4KA	R# \
dKSi;i)N�NNN��
_deadstate)�_active�_internal_poll�sys�maxsize�removerB)�inst�ress  r/r�r�s]���?���A�J�J�D��%�%����%�=�C�����N�N�4�(�	��
"����s�A�A,�+A,c��.p\PPpV^8�d VPRRV,,4V#)zcReturn a list of command-line arguments reproducing the current
optimization 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	R
RR/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'dVPR4RF8pW69gKWc,p	V	RJdTp
M	V:RV	:2p
VPRV
34K:	V#)zyReturn a list of command-line arguments reproducing the current
settings 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�-XT�=)r��dev)�faulthandler�tracemalloc�
importtime�frozen_modules�showrefcount�utf8�gil)r��items�getattrr�r�r��isolated�ignore_environment�no_user_site�	safe_path�warnoptionsr��dev_moder��extend)�flag_opt_mapr��flag�optr��warnopts�xoptionsr�r�rL�args           r/�_args_from_interpreter_flagsr�2s���	��	�s��3��3�����
�L�.�/�D�!�'�'�)�	���C�I�I�t�$���q�5��K�K��c�g�
�&�*�
�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�"�A���?��M�E���}���!$�e�,���K�K��s��$�A��Kr.c��\PP'd�\P!4pVPP
p^pVP;p'd(VPP
V8wdMV^,
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�
stacklevels   r/�_text_encodingr�os����y�y�&�&�&��M�M�O���8�8�'�'���
��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 or
for timeout seconds, then return the returncode attribute.

The arguments are the same as for the Popen constructor.  Example:

retcode = call(["ls", "-l"])
�rXN)r�wait�kill)rX�	popenargs�kwargs�ps$*, r/�callr��sP��
�	�	$�V�	$�	$��	��6�6�'�6�*�
%�	$��	�
�F�F�H���

%�	$�	$�s�A�2�A�A�A	c�~�\V/VBpV'd*VPR4pVf
V^,p\W#4h^#)a7Run 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"])
r�)r��getr)r�r��retcoder6s*,  r/�
check_callr��s@���I�(��(�G���j�j�� ���;��A�,�C� ��.�.�r.c	�h�R
FpW29gK\VR24h	RV9dqVR,ffVPR4'gFVPR4'g/VPR4'gVPR4'dR	pMR
pWBR&\VR\RVRR/VBP#)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'

By default, all communication is in bytes, and therefore any "input"
should be bytes, and the return value will be bytes.  If in text mode,
any "input" should be a string, and the return value will be a string
decoded according to locale encoding, or by "encoding" if set. Text mode
is triggered by setting any of text, encoding, errors or universal_newlines.
rH�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]!]P4t
RtRtVt
R#)	ri�a)A 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).
Nc�6�WnW nW0nW@nR#r4)r�r5rHr8)r9r�r5rHr8s&&&&&r/r:�CompletedProcess.__init__�s���	�$�����r.c��RPVP4RPVP4.pVPe+VP	RPVP44VP
e+VP	RPVP
44RP\
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	WR7wrxTP4p
T'd T
'd\Y�PYxR7hRRR4\XPX
XX4# \
dQp	TP
4\'dTP	4wT	nT	n	hTP4hRp	?	iTP
4h;i +'giL�;i)	a2Run 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,
or pass capture_output=True to capture both.

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 (seconds) is given and the process takes too long,
 a TimeoutExpired exception will be raised.

There is an optional argument "input", allowing you to
pass bytes or 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.

By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.

The other arguments are the same as for the Popen constructor.
N�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��
_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�/
%�2�G�L�L�'�6�6�B�B��-�
	��L�L�N��z�*1�)<�)<�)>�&��
�C�J�

�������	��L�L�N���)
%�	$�s=�
E&�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#)aM
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� �	�"�\z\"r�)�mapr%�fsdecoder��lenr�r�)�seq�result�	needquoter��bs_buf�cs&     r/�list2cmdlinerFs��<�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.

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)�shellr�r8r�r�N�
���)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.

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'
�r�r�)r)r6r�r�s&$$r/�	getoutputr�s���3�&�A�!�D�Dr.c�b�\'g\\R4'gR#\PP	R4;pR
9d\\
V44#\PR9dR#\P!R4pVP^R7p\V4^8wd\hV^,p\\\V^,PR444p\PR8XdVR	8Xd
VR8�dR#R# \\\ 3dR#i;i)
adCheck if posix_spawn() can be used for subprocess.

subprocess requires a posix_spawn() implementation that properly reports
errors to the parent process, & sets errno on the following failures:

* Process attribute actions failed.
* File actions failed.
* exec() failed.

Prefer an implementation which can use vfork() in some cases for best
performance.
�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�splitr
rB�tupler�AttributeError�OSError)�_env�ver�parts�libc�versions     r/�_use_posix_spawnr7�s����z���]�3�3������� D�E�	E��*�T��C��I���
�|�|�+�+��
��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�Za�]tRtRtoRtRtR7RRRRRRRRR	RR
RRR6RR6R
R/	RlltRt]!]	P4t]R4t
]
PR4t
RtRtRt]P&]P*3RltRtRtR8RltRtRtR9RltR:RltRt]P@R4t!]"'dKRt#R t$R!t%R"t&R]'PP]'PR]'PT3R#lt+R$t,R%t-R&t.R't/R(t0]0t1R5t7Vt8R#R)t#R*t2R+t&]33R,lt4R]33R-lt+R.t5R/t,R0t.R1t6R2t/R3t0R4t1R5t7Vt8R#);ri�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.

  text: If true, decode stdin, stdout and stderr using the given encoding
      (if set) or the system default otherwise.

  universal_newlines: Alias of text, provided for backwards compatibility.

  startupinfo and creationflags (Windows only)

  restore_signals (POSIX only)

  start_new_session (POSIX only)

  process_group (POSIX only)

  group (POSIX only)

  extra_groups (POSIX only)

  user (POSIX only)

  umask (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
FN�user�group�extra_groupsr�r�r��umask�pipesize�
process_groupc	���\'g,\\P\P
R24h\
4\P!4Vn	RVn
RVnVfR"p\V\4'g\R4hV\Jd\!R4hVfR"p\V\4'g\R4h\"'dVe\!R4hMNV'd&V'g\$P&!R\(4R	pV
e\!R
4hV^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_execr1r+�ENOTSUPr�r,r��	threading�Lock�
_waitpid_lock�_input�_communication_started�
isinstancerx�	TypeErrorrrBr�r�r��RuntimeWarningr�r�rHr8�pidr5r�r�r>r+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�rHrpru),r9r��bufsize�
executabler�rHr8�
preexec_fn�	close_fdsr�cwd�envr��startupinfo�
creationflags�restore_signals�start_new_session�pass_fdsr:r;r<r�r�r�r=r>r?rF�gidrX�gids�extra_group�	gid_check�uidr\�p2cread�p2cwrite�c2pread�c2pwrite�errread�errwriter��to_close�fds,&&&&&&&&&&&&&&&&&&$$$$$$$$$                 r/r:�Popen.__init__0s:���~���
�
�#�,�,��/K�L��
�	�
�'�^�^�-������&+��#��?��G��'�3�'�'��8�9�9��V���A�B�B����H��(�C�(�(��9�:�:��:��%� �"-�.�.�&�
�	��
�
�>��O� �	��&� �"-�.�.���!� �"-�.�.��	���
������������� ��
���� ��
�
��!3�!?��'�(�D��J�6�!�#F�G�
G�"�I�I�V�I�I�t�I�I�7I����>�>�>�h�.�'5�'7�7�D�M�H�
"&���&+��#��>�>�>��!�|�!%����!&��� ��M������2�z�*�*� �"4�5�5��E�3�'�'�J��
�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�=��
��>�>�>�!#�!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�
_"� _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__4s[������'�'�(�)��?�?�+�7�4�9�9�-�q�
B�	��x�=�2����}�v�-�H��r.c��VP#r4)rTrCs&r/r��Popen.universal_newlines?s���~�~�r.c�&�\V4VnR#r4)r+rT)r9r�s&&r/r�r�Es���0�1��r.c�h�VPW#4pVPRR4PRR4#)z
r�
)�decode�replace)r9rr�r�s&&&&r/�_translate_newlines�Popen._translate_newlinesIs.���{�{�8�,���|�|�F�D�)�1�1�$��=�=r.c��V#r4r rCs&r/�	__enter__�Popen.__enter__Ms���r.c��VP'dVPP4VP'dVPP4VP'dVPP4V\8Xd8VP
^8�dVP
VP
R7^VnR#VP4R# \dL(i;i T\8XdITP
^8�d0TP
TP
R7M \dMi;i^TniTP4i;i)r=r�N)	rHrgr8r��KeyboardInterruptrU�_waitrr�)r9�exc_typerL�	tracebacks&&&&r/�__exit__�Popen.__exit__Ps���;�;�;��K�K�����;�;�;��K�K����	��z�z�z��
�
� � �"��,�,��)�)�A�-���
�
�4�+A�+A�
�B�*+��&��	�	���*������,�,��)�)�A�-���
�
�4�+A�+A�
�B��)�����)*��&��	�	��sH�C+�,C+�#C�C(�'C(�+E�	D&�%E�&D4�1E�3D4�4Ec��VP'gR#VPf!V!RVP,\VR7VP	VR7VPf"\
e\
P
V4R#R#R#)Nzsubprocess %s is still running)�sourcer�)�_child_createdr5rS�ResourceWarningr�r�r�)r9�_maxsize�_warns&&&r/r��
Popen.__del__ksl���"�"�"���?�?�"�
�2�T�X�X�=�!�$�
0�	
���x��0��?�?�"�w�':��N�N�4� �(;�"r.c��\VR4'g9\P!\P\P4VnVP
#)rH)r)r%rc�devnull�O_RDWRrHrCs&r/�_get_devnull�Popen._get_devnullzs3���t�Z�(�(��G�G�B�J�J��	�	�:�D�M��}�}�r.c��V'dVPPV4VPP
4R# \dL*\d+pTP\P
8XdRp?LXhRp?ii;i \dR#\d,pTP\P
8XdRp?R#hRp?ii;ir4)r��write�BrokenPipeErrorr1r+�EINVALrg)r9r�rs&& r/�_stdin_write�Popen._stdin_writes����
��
�
� � ��'�	��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.
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, or None, if no data should be sent to the child.
communicate() returns a tuple (stdout, stderr).

By default, all communication is in bytes, and therefore any
"input" should be bytes, and the (stdout, stderr) will be bytes.
If in text mode (indicated by self.text_mode), any "input" should
be a string, and (stdout, stderr) will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode
is triggered by setting any of text, encoding, errors or
universal_newlines.
z.Cannot send input after starting communicationNr�T)rOrBr�rHr8�countr��readrgr��_time�_communicater��minrU�_remaining_timer�rrX)	r9r�rXrHr8�endtime�sigint_timeout�stsrs	&&&      r/r��Popen.communicate�s���$�&�&�&�5��M�N�N�

�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��
����/%�

��&�%(��)?�)?�)-�)=�)=�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 returncode
attribute.)r�rCs&r/r�
Popen.poll�s���"�"�$�$r.c�0�VfR#V\4,
#)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�
stdout_seq�
stderr_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�rUr�r)r9rXr�r�s&&  r/r��
Popen.wait�s������g��'�G�	��:�:�g�:�.�.�� �	�
�"�!$�T�%;�%;�%)�%9�%9�'�%B�"D��"&�!7�!7��%&�D�"�
��
�
�>�
�2�
��"�
���
��	�s.�)�AB�2B�B�B�B�B�Bc��\VRR4p\P!4;_uu_4p\'dhVR8wdVP	VP
4VR8wdVP	VP
4VR8wdVP	VP
4M�VR8wd.VR8wd'W8wd!VP	\PV4VR8wd.VR8wd'WG8wd!VP	\PV4VR8wd.VR8wd'Wg8wd!VP	\PV4Ve!VP	\PV4RRR4RVnR# +'giL;i)rHNTr)	r��
contextlib�	ExitStackr��callbackrur%rgrV)	r9rxryrzr{r|r}�
devnull_fd�stacks	&&&&&&&  r/�_close_pipe_fds�Popen._close_pipe_fdss
��
�T�:�t�4�
�
�
!�
!�
#�
#�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\
4'dTP
4K8\P!T4KP \dK^i;i	h;i5i)zCHelper to ensure file descriptors opened in _get_handles are closedrHN)
r)r�rHr�rPrprur%rgr1)r9r~rs&  r/�_on_error_fd_closer�Popen._on_error_fd_closer-s������	��N��	��t�Z�(�(�����
�
�.��M����!�z�j��V�&<�&<����
������������
�
�sI�B'��B'�6B$�2B�5B$�7B�
B$�B�B$�B�B$�$B'c���VfVfVfR#RRrTRRrvRRr�VP4;_uu_4p
Vfu\P!\P4pVfL\P!R^4wrK\V4pV
P
V4\P!V4M�V\8XdB\P!R^4wrE\V4\V4rTV
PWE34M�V\8Xd&\P!VP44pMQ\V\4'd\P!V4pM$\P!VP!44pVP#V4pVfu\P!\P$4pVfL\P!R^4wr�\V4pV
P
V4\P!V4M�V\8XdB\P!R^4wrg\V4\V4rvV
PWg34M�V\8Xd&\P!VP44pMQ\V\4'd\P!V4pM$\P!VP!44pVP#V4pVfu\P!\P&4p	V	fL\P!R^4wr�\V	4p	V
P
V	4\P!V4M�V\8XdB\P!R^4wr�\V4\V	4r�V
PW�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:
p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite
Nr)rrrrrr)r�r�GetStdHandler
�
CreatePiperpr�rtr�r��DEVNULLr`�
get_osfhandler�rPrx�fileno�_make_inheritablerrr)r9r�rHr8rxryrzr{r|r}�
err_close_fds�_s&&&&        r/r_�Popen._get_handlesEsk���}���F�N�/�/� "�B�X� "�B�X� "�B�X��)�)�+�+�}��=�%�2�2�7�3K�3K�L�G���%,�%7�%7��a�%@�
��"(��/��%�,�,�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 used
in lpAttributeList["handle_list"] and make sure the list
isn'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!V
'd\R4h\	V.4pMK\V\
P4'd!V
'd\R4h\	V.4pM\	V4pVe\
P!V4pVf\4pMVP4pRW�V39pV'd;V;P\P,un
W�n
W�nVVnVP p\#T;'dRV9;'d
VR,4pV'gV'd�V'd�Vf
/;pVn\%VP'R.44;pVR&V'd(V\)V4\)V4\)V4.,
pVP+V4VR&V'd&V'g\,P.!R\04RpV
'EdV;P\P2,un
\P4VnV'g�\
P8P'R	4pV'gr\
P8P'R
R4p\
P:P=VRR
4p\
P:P?V4'g\AR4h\
P:P?V4'dTpMTpRPCVV4pVe\
P!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�
SystemRootr��System32zcmd.exez:shell not found: neither %ComSpec% nor %SystemRoot% is setz
{} /c "{}"�subprocess.PopenTr)+rPrW�bytesrQrr%�PathLiker	rrkr`rrrarbrcrer+rlr�rxr�r�r�rRrr
rdr*�pathr��isabs�FileNotFoundErrorr�r��audit�
CreateProcessr�r�rp�_handlerSrt)"r9r�rirjrkrrrlrmrnrorrxryrzr{r|r}�unused_restore_signals�
unused_gid�unused_gids�
unused_uid�unused_umask�unused_start_new_session�unused_process_group�use_std_handles�attribute_list�have_handle_listrg�comspec�system_root�hp�htrS�tids"&&&&&&&&&&&&&&&&&&&&&&&&          r/re�Popen._execute_child�sI�� �E�!E�E�<��$��$�$���D�%�(�(��#�$J�K�K�#�T�F�+���D�"�+�+�.�.��#�%4�5�5�#�T�F�+��#�D�)���%��[�[��4�
��"�)�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��
 �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�-�-�%,�
��(�G�#�*�*�G�T�:�����k�k�#�&���I�I�(�*�C�E�
8�#*�#8�#8��)-�t�),��]�);�)6�),�),�)4�$6� ��B��S��$�$�W�%,�%,�h�8�
#'�D��!�"�:�D�L��D�H�����#���$�$�W�%,�%,�h�8�s�(0O"�"O8c��VPf0V!VP^4V8XdV!VP4VnVP#)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.

)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!VP
V4pV\P8Xd\VPV4h\P!VP
4VnVP#)z-Internal implementation of wait() on Windows.i�)
r�INFINITErxr5�WaitForSingleObjectr��WAIT_TIMEOUTrr��GetExitCodeProcess)r9rX�timeout_millisrs&&  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�rg)r9�fh�buffers&&&r/�
_readerthread�Popen._readerthreadLs���M�M�"�'�'�)�$��H�H�Jr.c��VP'd�\VR4'gp.Vn\P!VP
VPVP3R7VnRVPnVPP4VP'd�\VR4'gp.Vn
\P!VP
VPVP3R7VnRVPnVPP4VP'dVPV4VPeaVPPVPV44VPP!4'd\#VP$V4hVPeaVPPVPV44VPP!4'd\#VP$V4hRpRpVP'd'VPpVPP'4VP'd'VPpVPP'4V'd
V^,MRpV'd
V^,MRpWE3#)�_stdout_buff)�targetr�T�_stderr_buffN)rHr)rrK�Threadr�
stdout_thread�daemon�startr8r�
stderr_threadr�r�r�r��is_aliverr�rg)r9r�r�r�rHr8s&&&&  r/r��Popen._communicateQs���{�{�{�7�4��#@�#@�$&��!�!�(�(��0B�0B�/3�{�{�D�<M�<M�.N�P��"�-1��"�"�)��"�"�(�(�*��{�{�{�7�4��#@�#@�$&��!�!�(�(��0B�0B�/3�{�{�D�<M�<M�.N�P��"�-1��"�"�)��"�"�(�(�*��z�z�z��!�!�%�(�
�{�{�&��"�"�'�'��(<�(<�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\
P!VP\P4R#V\P8Xd2\
P!VP\P4R#\RPV44h)�Send a signal to the process.NzUnsupported signal: {})r5r@�SIGTERM�	terminate�CTRL_C_EVENTr%r�rS�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\P
!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_4p
VfM�V\8Xd�\P!4wrEV
P	WE34VP
^8�dG\
\R4'd1\P!V\PVP
4MEV\8XdVP4pM)\V\4'dTpMVP4pVfM�V\8Xd�\P!4wrgV
P	Wg34VP
^8�dG\
\R4'd1\P!V\PVP
4MEV\8XdVP4pM)\V\4'dTpMVP4pVfEMV\8Xd�\P!4wr�V
P	W�34VP
^8�dG\
\R4'd1\P!V	\PVP
4MyV\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�r>r)�fcntlr1r�r�rPrxr�rr��
__stdout__)r9r�rHr8rxryrzr{r|r}r�s&&&&       r/r_r��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&.pWxV
3F-pVR8wgKVP\PV34K/	V^3V	^3V^33F1wppVR8wgKVP\P
VV34K3	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_DUP2r8rrSr�r�)r9r�rirmrprkrxryrzr{r|r}r��sigset�signame�signumr7r�fd2s&&&&&&&&&&&&       r/�_posix_spawn�Popen._posix_spawn�s%��
�F����?�G�$�V�W�d�;�F��)��
�
�f�-� @�'-�{�#��L��'�2����8� �'�'��)=�)=�r�(B�C�3��!���1�
��1�
����C�
��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'dV
'd\R4hV.pM\
V4pV
'd3\\R4'dRMRpVR.V,pS'dSV^&Sf
V^,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+.V3R
l\P.!V44FNK	5M$!V3R
l\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�dirris& �r/�	<genexpr>�'Popen._execute_child.<locals>.<genexpr>gs3����0>�'<���G�G�L�L����S�)9�:�F�F�'<�s�AATiP��:sSubprocessError�0z#Bad exception data from child: {!r}�asciiznoexec:chdirr��noexecr)2rPrWr�r%r�rQrlr)r�r��_USE_POSIX_SPAWNr��dirname�_HAVE_POSIX_SPAWN_CLOSEFROMrAr2r��duprgr�rGrBr/�
get_exec_path�set�add�
_fork_exec�sortedrrxrSr�r��	bytearrayr�r
r&�_handle_exitstatusr�r5�ChildProcessErrorr.r�r�r��builtinsr�
issubclassr1�strerror)-r9r�rirjrkrrrlrmrnrorrxryrzr{r|r}rprsrtrwr=rqr?�
unix_shell�orig_executable�errpipe_read�
errpipe_write�low_fds_to_close�low_fd�env_list�kr��executable_list�fds_to_keep�errpipe_data�partrSr��exception_name�	hex_errno�err_msg�child_exception_type�	errno_num�err_filenames-&&f&&&&&&&&&&&&&&&&&&&&&                     r/rers�����$��e��-�-��v���D�"�+�+�.�.��#�%4�5�5��v���D�z���"�#�';�<�<�/�BK��"�D�)�D�0���(�D��G��!�!�!�W�
��I�I�(�*�d��E� � ������
�3�3�"�*�&�*E�*E�$��� �B��'�A�+�!�R��8�a�<�!�R��8�a�<�-�%��+���������	��!�!�$�
�C��)�")�")�")�8�5��(�O�
+-�'�'�)�'�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�
&�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/rZ�Popen._handle_exitstatus�s<���#�#�C�(�(�#,�#5�#5�c�#:�":���"+�"B�"B�3�"G��r.c��VPf�VPPR4'gR#VPe'VPVPP4#VP	VP
VP4wr4W0P
8XdVPV4TPP4TP#VP# \d<pTeYnRp?LLTPTP8Xd^TnRp?LsRp?ii;i TPP4i;i)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).

NF)r5rM�acquire�releaser&rSr*rZr1r+r,)r9r�rrSr��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(�-
D#�7D+�<"D#�D+�#D(�(D+�+Ec��\P!VPV4wr#W#3# \dTPp^pY#3#i;i)rr)r%r&rSr[)r9�
wait_flagsrSr�s&&  r/�	_try_wait�Popen._try_wait�sP��
��Z�Z����*�=�
���:���
%�
��h�h�����:��

�s�#(�A�Ac��VPe
VP#VEed\4V,pRpVPPR4'd�VPe(VPP	4VP#VP\P4wrEW@P8Xg
V^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�rMrurvrzr%r*rSrZr�rr�r��time�sleep)r9rXr��delayrSr��	remainings&&     r/r�r�s������*����&��"��'�G�+������)�)�1�1�%�8�8�	9�#���:� %�!�.�.�6�6�8�"�?�?�"�/*.����
�
�)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�
���(�(�?� �3�3�C�8�,�+��?�?�"��#!�.�.�6�6�8��,�+�+�s%�H�AH�%H2�	4H2�H/�2I	c
��VP'dQVP'g?VPP4V'gVPP	4RpRpVP'g^/VnVP'd.VP
VP&VP'd.VP
VP&VP'dVP
VP,pVP'dVP
VP,pVPV4VP'd\VP4p\4;_uu_4pVP'd3V'd+VPVP\P4VP'dGVPP'g+VPVP\P 4VP'dGVPP'g+VPVP\P 4VP#4'Ed�VP%V4pVe'V^8d VP'W#WERR7\)R4hVP+V4p	VP'W#WE4V	EF�wr�V
P,VPJd�XVP.VP.\0,pV;P.\2P4!V
P6V4,
unVP.\9VP48�d8VP;V
P,4V
P,P	4K�K�V
P,VPVP39gEK\2P<!V
P6R4p
V
'g6VP;V
P,4V
P,P	4VP
V
P,,P?V
4EK�	EK
RRR4VPAVP%V4R7TeRPGT4pTeRPGT4pTPH'dTe<TPKTTPPLTPPN4pTe<TPKTTPPLTPPN4pYE3# \dEL6i;i \dEL%i;i \d;TP;T
P,4T
P,P	4EK�i;i +'giEL\;i \Bd
pY>n"hRp?ii;i)NT)r�zN_check_timeout(..., skip_check_and_raise=True) failed to raise TimeoutExpired.i�r�r.)(r�rO�flushr�rg�_fileobj2outputrHr8�_save_inputrN�
memoryview�_PopenSelector�register�	selectors�EVENT_WRITErs�
EVENT_READ�get_mapr�r��RuntimeError�select�fileobj�
_input_offset�	_PIPE_BUFr%r�rr
�
unregisterr�r�r�rrXr�rTr�r�r�)r9r�r�r�rHr8�
input_view�selectorrX�ready�key�events�chunkrrs&&&&           r/r�rsz���z�z�z�$�"=�"=�"=���J�J�$�$�&����
�
�(�(�*��F��F��.�.�.�')��$��;�;�;�8:�D�(�(����5��;�;�;�8:�D�(�(����5��{�{�{��-�-�d�k�k�:���{�{�{��-�-�d�k�k�:�����U�#��{�{�{�'����4�
��!�!�X��:�:�:�%��%�%�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�
(-����;�;�$�*�*�4�$.�t�/A�/A�/3�/A�/A�I�/M�%O�E�8� $� 2� 2�b�h�h�s�v�v�u�6M� M� 2�
$(�#5�#5��T�[�[�9I�#I�$,�$7�$7����$D�$'�K�K�$5�$5�$7�$J�!�[�[�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��#�#��A'�����
+�����l$3�4� (� 3� 3�C�K�K� @� #��� 1� 1� 3� 3�4��="�!�!��Z"�
�*����
�s��U(�	U:�>W�;W�W�1;W�-W�	AW�
B$W�/8V�'BW�.(W�A)W�
!W(�(U7�6U7�:V	�V	�AW	�W�W	�W�W%	�(W?�3W:�:W?c�.�VP'd�VPfs^VnWnVe`VP'dLVPP	VPP
VPP4VnR#R#R#R#R#r4)r�rNr�rT�encoder�r�)r9r�s&&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# \
dR#i;i)r!N)rr5r%r�rS�ProcessLookupErrorr&s&&r/r(r)�sC��$
�I�I�K����*��

�������#�&��%�
��
�s�!A�A�Ac�D�VP\P4R#)z/Terminate the process with SIGTERM
            N)r(r@r"rCs&r/r#r/����
���V�^�^�,r.c�D�VP\P4R#)z*Kill the process with SIGKILL
            N)r(r@�SIGKILLrCs&r/r��
Popen.kill�r�r.)r�rVrOrHr�r�rNr�rUrrrMr�r�r�rSr>r5r8rr�rHrrTr)rNNNNNTFNNNNr=TFr rN)Fr4)9r!r"r#r$rPr�r:r}r�r�r�r�rQr�rRr�r�r�r�r�r�r�r�r�r�r�rr�r�r�r�r��contextmanagerr�r�r_r�r�rerr�
WAIT_OBJECT_0r
r�r�rr�r(r#r�rArrZrzr�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��
����
���2��2�>���6 #�{�{�(�-�-�
!��
�2D �N%�%�	I��.+�:������&�L	'�^	�
	5�}	$�~-1�%,�%@�%@�&�4�4�$+�$>�$>�	#�"	#�$	�
0	$�d	G�
	%���=	'�@&	4�Pg	4�T5>�	H�-1�I�	#�D
	�&	#�Rf	$�R		H�	�@	-�
	-�	-r.)rr�rr�r�rrr�r�rr�rrr>�ios�tvos�wasi�watchos�
emscripten)rr	r
rrr
rrrrrrrrrrrrrrrr������)UrPr\r+rbr�r%r}r@r�rKr�r�rr�r�r3rY�__all__r`r��ModuleNotFoundErrorr,rIrrr	r
rrr
rrrrrrrrrrrrrrr��_posixsubprocessrrWrr�r��	Exceptionrrrrrxrpr�r�r)r�r��SelectSelectorr�r�r�rr�r�r�r�r�r�r��objectrr�rrrr7rPrRrr r.r/�<module>r�s[�� �D��	�
�	��
�
����#����
D�����J����%U�U��
��	O�	O�	O�	O�	O�	O��N�N�
N�
O��<�	"�	"�	"�	"���'�i�&�"��"�J�_��8�:�:�.���,��
�C�0�I�
�y�.�)�)�"�/�/��"�1�1����G�
��G��
��	��
���:�z$�(�T��"
�&2 �T�2 �j!2�v�!2�HCC��CC�#(�CC�26�CC�>C�CC�LC�R�T��$��@
E�t�
E�D�
E�0�j$�%��%�b�*A�B��@-�@-��w���E������J��s#�F?�G�?	G�G�	G�G