ok

Mini Shell

Direktori : /opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/__pycache__/subprocess.cpython-311.opt-2.pyc

�

�f�Z���	ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlmZddl
Z
	ddlZn
#e$rdZYnwxYwgd�Z	ddlZdZn
#e$rdZYnwxYwejdvZerDddlZddlmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(e�)gd���n@er*dd	l*m+Z,ej-Z.ej/Z0ej1Z2ej3Z4ej5Z6ndZ,dZ.dZ0dZ2dZ4dZ6ddl7Z7ddl8Z8Gd
�de9��Z:Gd�d
e:��Z;Gd�de:��Z<erGd�d��Z=Gd�de>��Z?n(e@e7dd��ZAeBe8d��re8jCZDne8jEZDerdZFd�ZGngZFd�ZGdZHdZIdZJd�ZKd�ZLd�ZMdd�d �ZNd!�ZOdd�d"�ZPGd#�d$eQ��ZRddddd%�d&�ZSd'�ZTddd(�d)�ZUddd(�d*�ZVd+�ZWeW��ZXdZYGd,�d-��ZZdS).�N)�	monotonic)�Popen�PIPE�STDOUT�call�
check_call�getstatusoutput�	getoutput�check_output�run�CalledProcessError�DEVNULL�SubprocessError�TimeoutExpired�CompletedProcessTF>�wasi�
emscripten)�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�STARTUPINFOrrrrr r!r"r#r$r%)�	fork_execc��eZdZdS)rN)�__name__�
__module__�__qualname__���1/opt/alt/python311/lib64/python3.11/subprocess.pyrr{s�������r-rc�T�eZdZ	dd�Zd�Zed���Zejd���ZdS)r
Nc�>�||_||_||_||_dS�N)�
returncode�cmd�output�stderr)�selfr2r3r4r5s     r.�__init__zCalledProcessError.__init__�s"��$�������������r-c���|jrS|jdkrHd|j�dtj|j���d�S#t$rd|j|jfzcYSwxYwd|j|jfzS)Nr�	Command 'z' died with �.z)Command '%s' died with unknown signal %d.z.Command '%s' returned non-zero exit status %d.)r2r3�signal�Signals�
ValueError�r6s r.�__str__zCalledProcessError.__str__�s����?�		/�t���2�2�
4�����&�.�$�/�1A�"B�"B�"B�"B�D�D���
4�
4�
4�B���4�?�"2�F4�4�4�4�4�
4����D��H�d�o�G/�/�
/s�%9�A�Ac��	|jSr1�r4r>s r.�stdoutzCalledProcessError.stdout�s
��9��{�r-c��||_dSr1rA�r6�values  r.rBzCalledProcessError.stdout��������r-�NN�r)r*r+r7r?�propertyrB�setterr,r-r.r
r
~st�����������
/�
/�
/�����X���]����]���r-r
c�T�eZdZ	dd�Zd�Zed���Zejd���ZdS)rNc�>�||_||_||_||_dSr1)r3�timeoutr4r5)r6r3rMr4r5s     r.r7zTimeoutExpired.__init__�s"���������������r-c�(�d|j�d|j�d�S)Nr9z' timed out after z seconds)r3rMr>s r.r?zTimeoutExpired.__str__�s�������4�<�<�<�)�	*r-c��|jSr1rAr>s r.rBzTimeoutExpired.stdout�s
���{�r-c��||_dSr1rArDs  r.rBzTimeoutExpired.stdout�rFr-rGrHr,r-r.rr�st�����������*�*�*�����X���]����]���r-rc�*�eZdZddddddd�d�Zd�ZdS)r&rN��dwFlags�	hStdInput�
hStdOutput�	hStdError�wShowWindow�lpAttributeListc�b�||_||_||_||_||_|pdgi|_dS)N�handle_listrR)r6rSrTrUrVrWrXs       r.r7zSTARTUPINFO.__init__�s>��"�D�L�&�D�N�(�D�O�&�D�N�*�D��#2�#I�}�b�6I�D� � � r-c���|j���}d|vrt|d��|d<t|j|j|j|j|j|���S)NrZrR)	rX�copy�listr&rSrTrUrVrW)r6�	attr_lists  r.r\zSTARTUPINFO.copy�sk���,�1�1�3�3�I��	�)�)�+/�	�-�0H�+I�+I�	�-�(��t�|�)-��*.�/�)-��+/�+;�/8�:�:�:�
:r-)r)r*r+r7r\r,r-r.r&r&�sO������&'�4�D�#��D�	J�	J�	J�	J�	J�
	:�
	:�
	:�
	:�
	:r-r&c�6�eZdZdZejfd�Zd�Zd�ZeZ	dS)�HandleFc�<�|jsd|_||��dSdS)NT)�closed)r6�CloseHandles  r.�ClosezHandle.Close�s3���;�
"�"�����D�!�!�!�!�!�
"�
"r-c�Z�|jsd|_t|��Std���)NTzalready closed)rb�intr=r>s r.�Detachz
Handle.Detach�s.���;�
!�"����4�y�y� ��-�.�.�.r-c�>�d|jjt|��fzS)Nz%s(%d))�	__class__r)rfr>s r.�__repr__zHandle.__repr__�s���t�~�6��D�	�	�B�B�Br-N)
r)r*r+rb�_winapircrdrgrj�__del__r,r-r.r`r`�sU��������$+�$7�	"�	"�	"�	"�
	/�	/�	/�	C�	C�	C����r-r`�PIPE_BUFi�PollSelectorc��dSr1r,r,r-r.�_cleanuprps���r-c���t�dStdd�D]P}|�tj���}|�,	t�|���@#t
$rY�LwxYw�QdS)N��
_deadstate)�_active�_internal_poll�sys�maxsize�remover=)�inst�ress  r.rprps����?��F��A�A�A�J�	�	�D��%�%���%�=�=�C�����N�N�4�(�(�(�(��!�����D������	�	s�A�
A&�%A&���������c�p�	g}tjj}|dkr|�dd|zz��|S)Nr�-�O)rv�flags�optimize�append)�argsrEs  r.�"_optim_args_from_interpreter_flagsr�"s?��+�
�D��I��E��q�y�y����C�#��+�%�&�&�&��Kr-c��	ddddddd�}t��}|���D]@\}}ttj|��}|dkr|�d	||zz���Atjjr|�d
��nrtjjr|�d��tjjr|�d��tjj	r|�d
��tj
dd�}ttdi��}tjj}tjj}|dkr|�
d��n|r|�
d��|r|�
d��|D]}|�d|z���|r|�d��dD]3}||vr-||}	|	dur|}
n|�d|	��}
|�d|
f���4|S)N�d�B�S�v�b�q)�debug�dont_write_bytecode�no_site�verbose�
bytes_warning�quietrrz-Iz-Ez-sz-P�	_xoptions�zerror::BytesWarningzdefault::BytesWarning�defaultz-W)�-X�dev)�faulthandler�tracemalloc�
importtime�frozen_modules�showrefcount�utf8T�=r�)r��items�getattrrvr�r��isolated�ignore_environment�no_user_site�	safe_path�warnoptionsr��dev_moderx�extend)�flag_opt_mapr��flag�optr��warnopts�xoptionsr�r�rE�args           r.�_args_from_interpreter_flagsr�,s:��A�� #�����
�
�L�.�/�/�D�!�'�'�)�)�'�'�	��c��C�I�t�$�$���q�5�5��K�K��c�A�g�
�&�&�&��
�y������D������9�'�	��K�K������9�!�	��K�K������9��	��K�K�������q�q�q�!�H��s�K��,�,�H��I�+�M��y�!�H��q������-�.�.�.�.�	�1����/�0�0�0��#����	�"�"�"�� � �����D�3�J������#����M�"�"�"�:�%�%���(�?�?��S�M�E���}�}����!$���e�e�,���K�K��s��$�$�$���Kr-c�8�tjjrdtj��}|jj}d}|jx}r|jj|krn|dz
}|jx}�tjdt|��tjj
rdStj��S)N�r�z"'encoding' argument not specified.zutf-8)
rvr��warn_default_encoding�	_getframe�f_code�co_filename�f_back�warnings�warn�EncodingWarning�	utf8_mode�locale�getencoding)�f�filename�
stacklevels   r.�_text_encodingr�is����y�&�	3��M�O�O���8�'���
��8�m�a�	��x�#�x�/�/���!�O�J��8�m�a�	�	�
�:�%�z�	3�	3�	3��y��$��w��!�#�#�#r-�rMc��	t|i|��5}	|�|���cddd��S#|����xYw#1swxYwYdS)Nr�)r�wait�kill)rM�	popenargs�kwargs�ps    r.rr}s����
�	�	$�V�	$�	$���	��6�6�'�6�*�*����������	�
�F�F�H�H�H�����
������������s �A�2�A	�	A�A�Ac��	t|i|��}|r/|�d��}|�|d}t||���dS)Nr�r)r�getr
)r�r��retcoder3s    r.rr�sW����I�(��(�(�G��/��j�j�� � ���;��A�,�C� ��#�.�.�.��1r-c�B�	dD]}||vrt|�d�����d|vrf|d�^|�d��s?|�d��s*|�d��s|�d��rd}nd	}||d<t|t|d
d�|��jS)N)rB�checkz- argument not allowed, it will be overridden.�input�universal_newlines�text�encoding�errors�r-T)rBrMr�)r=r�rrrB)rMr�r��kw�emptys     r.rr�s���!�D"�S�S��
��<�<���Q�Q�Q�R�R�R���&���V�G�_�4��:�:�*�+�+�	�v�z�z�&�/A�/A�	�V�Z�Z�PZ�E[�E[�	��:�:�h�'�'�	��E�E��E���w���	�$��t������� r-c�D�eZdZ	dd�Zd�Zeej��Zd�Z	dS)rNc�>�||_||_||_||_dSr1)r�r2rBr5)r6r�r2rBr5s     r.r7zCompletedProcess.__init__�s"����	�$����������r-c��d�|j��d�|j��g}|j�-|�d�|j����|j�-|�d�|j����d�t
|��jd�|����S)Nz	args={!r}zreturncode={!r}zstdout={!r}zstderr={!r}z{}({})z, )	�formatr�r2rBr�r5�typer)�join)r6r�s  r.rjzCompletedProcess.__repr__�s����"�"�4�9�-�-�!�(�(���9�9�;���;�"��K�K�
�,�,�T�[�9�9�:�:�:��;�"��K�K�
�,�,�T�[�9�9�:�:�:����t�D�z�z�2�D�I�I�d�O�O�D�D�Dr-c�b�	|jr&t|j|j|j|j���dSr1)r2r
r�rBr5r>s r.�check_returncodez!CompletedProcess.check_returncode�s<��D��?�	2�$�T�_�d�i���%)�[�2�2�
2�	2�	2r-rG)
r)r*r+r7rj�classmethod�types�GenericAlias�__class_getitem__r�r,r-r.rr�sc������	�����E�E�E�$��E�$6�7�7��2�2�2�2�2r-r)r��capture_outputrMr�c��	|�.|�d���td���t|d<|rM|�d���|�d���td���t|d<t|d<t|i|��5}	|�||���\}}ny#t
$rW}	|���tr"|���\|	_|	_	n|�
���d}	~	w|����xYw|���}
|r|
rt|
|j
||����ddd��n#1swxYwYt|j
|
||��S)N�stdinz/stdin and input arguments may not both be used.rBr5z@stdout and stderr arguments may not be used with capture_output.r��r4r5)r�r=rr�communicaterr��
_mswindowsrBr5r��pollr
r�r)r�r�rMr�r�r��processrBr5�excr�s           r.rr�s����8
���:�:�g���*��N�O�O�O���w��� ��:�:�h���+�v�z�z�(�/C�/C�/O��4�5�5�
5���x����x��	�	�	$�V�	$�	$�C��	�$�0�0���0�H�H�N�F�F�F���
	�
	�
	��L�L�N�N�N��

�*1�)<�)<�)>�)>�&��
�C�J�J������������	��L�L�N�N�N������,�,�.�.���	C�W�	C�$�W�g�l�,2�6�C�C�C�
C�/C�C�C�C�C�C�C�C�C�C�C����C�C�C�C�2�G�L�'�6�6�B�B�Bs7�
E�B*�)E�*
D �4AD�D � 3E�E#�&E#c��	g}d}ttj|��D�]}g}|r|�d��d|vpd|vp|}|r|�d��|D]�}|dkr|�|���|dkr@|�dt	|��zdz��g}|�d���d|r|�|��g}|�|����|r|�|��|r*|�|��|�d����d�|��S)	NF� �	�"�\r�z\"r�)�map�os�fsdecoder��lenr�r�)�seq�result�	needquoter��bs_buf�cs      r.�list2cmdliner�@s����:�F��I��2�;��$�$�!�!�����	��M�M�#�����C�Z�<�T�S�[�<��W�	��	��M�M�#�����	!�	!�A��D�y�y��
�
�a� � � � ��c����
�
�d�S��[�[�0��2�3�3�3����
�
�e�$�$�$�$�� ��M�M�&�)�)�)��F��
�
�a� � � � ��	"��M�M�&�!�!�!��	��M�M�&�!�!�!��M�M�#�����
�7�7�6�?�?�r-�r�r�c���		t|ddt||���}d}n%#t$r}|j}|j}Yd}~nd}~wwxYw|dd�dkr
|dd�}||fS)NT)�shellr�r5r�r�rr{�
)rrr
r4r2)r3r�r��data�exitcode�exs      r.r	r	�s����(!��C�t�$�v�%-�f�>�>�>�������!�!�!��y���=�����������!�����B�C�C�y�D����C�R�C�y���T�>�s� �
A�=�Ac�4�	t|||���dS)Nr�r�)r	)r3r�r�s   r.r
r
�s#����3��&�A�A�A�!�D�Dr-c���	tsttd��sdStjdvrdS	tjd��}|�d���}t|��dkrt�|d	}ttt|d�d
������}tjdkr|dkr|d
krdSn#tttf$rYnwxYwdS)N�posix_spawnF)�darwin�sunos5T�CS_GNU_LIBC_VERSIONr�)�maxsplitr�rr:�linux�glibc)r��)r��hasattrr�rv�platform�confstr�splitr�r=�tupler�rf�AttributeError�OSError)�ver�parts�libc�versions    r.�_use_posix_spawnr�s�������]�3�3���u�
�|�+�+�+��t�
��j�.�/�/���	�	�1�	�%�%���u�:�:��?�?����Q�x����C��q�����!4�!4�5�5�6�6���<�7�"�"�t�w���7�g�;M�;M��4���
�J��0�
�
�
���
����
�5s�B#C�C1�0C1c��eZdZ	dZ							d/dddddddddd�	d�Zd	�Zeej��Z	e
d
���Zejd���Zd�Z
d
�Zd�Zejejfd�Zd�Zd�Zd0d�Zd�Zd�Z	d1d�Zd2d�Zd�Zejd���Ze r6d�Z!d�Z"d�Z#d�Z$de%j&e%j'e%j(fd�Z)d�Z*d�Z+d �Z,d!�Z-d"�Z.e.Z/dSd#�Z!d$�Z0d%�Z$e1e2e3fd&�Z4de5e6e7j8fd'�Z)d(�Z9d)�Z*d*�Z,d+�Z:d,�Z-d-�Z.d.�Z/dS)3rFr{NTrr,)	�user�group�extra_groupsr�r�r��umask�pipesize�
process_groupc	��	ts'ttjtj�d����t
��tj��|_	d|_
d|_|�d}t|t��std���|�d}t|t��std���tr|�t!d���nF|r|st#jdt&��d}|
�t!d	���|d
krt!d���||_d|_d|_d|_d|_d|_||_||_||_|�1|�/t;|��t;|��krt=d���|p|p|p||_|jr|�tA��x|_}d
|_!d|_"|jr
|dkrd}d}nd}|�d}d}|��tGtHd��st!d���t|tJ��r>	d
dl&}n#tN$rt!d���wxYw|�(|��j)}nGt|t��r|}n/td�*tW|�������|d
krt!d|�����d}|��+tGtHd��st!d���t|tJ��rt!d���g}|D]�}t|tJ��rQ	d
dl&}n#tN$rt!d���wxYw|�,|�(|��j)���ht|t��r|�,|����td�*tW|�������|D]} | d
krt!d| ������d}!|��tGtHd��st!d���t|tJ��r>	d
dl-}"n#tN$rt!d���wxYw|"�.|��j/}!n't|t��r|}!ntd���|!d
krt!d|!�����|�0|||��\}#}$}%}&}'}(tr�|$dkr'tcj2|$�3��d
��}$|%dkr'tcj2|%�3��d
��}%|'dkr'tcj2|'�3��d
��}'	|$dkrEtij5|$d|��|_|jr#tij6|jd|||���|_|%dkrCtij5|%d |��|_|jr!tij6|j||�!��|_|'dkrCtij5|'d |��|_|jr!tij6|j||�!��|_|�7||||||
||
||	|#|$|%|&|'|(||||!|||��dS#tqd|j|j|jf��D]'})	|)�9���#t$rY�$wxYw|j"s�g}*|ttkr|*�,|#��|ttkr|*�,|&��|ttkr|*�,|(��tG|d"��r|*�,|j;��|*D]X}+	tr*t|+tx��r|+�=��ntIj9|+���I#t$rY�UwxYw�xYw)#Nz does not support processes.Fr{zbufsize must be an integerzpipesize must be an integerz0preexec_fn is not supported on Windows platformszpass_fds overriding close_fds.Tz2startupinfo is only supported on Windows platformsrz4creationflags is only supported on Windows platformszlCannot disambiguate when both text and universal_newlines are supplied but different. Pass one or the other.g�?r��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��_devnull)>�_can_fork_execr�errno�ENOTSUPrvr
rp�	threading�Lock�
_waitpid_lock�_input�_communication_started�
isinstancerf�	TypeErrorr�r=r�r��RuntimeWarningr�r�rBr5�pidr2r�r�r�boolr�	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_osfhandlerg�io�open�
TextIOWrapper�_execute_child�filter�closerr$r`rd),r6r��bufsize�
executabler�rBr5�
preexec_fn�	close_fdsr��cwd�envr��startupinfo�
creationflags�restore_signals�start_new_session�pass_fdsrrrr�r�r�rrrr"�gidr6�gids�extra_group�	gid_check�uidr:�p2cread�p2cwrite�c2pread�c2pwrite�errread�errwriter��to_close�fds,                                            r.r7zPopen.__init__'s	��	)��	���
�#�,�L�L�L���
�	�
�
�
�'�^�-�-������&+��#��?��G��'�3�'�'�	:��8�9�9�9����H��(�C�(�(�	;��9�:�:�:��	.��%� �"-�.�.�.�&�
�
!�	�
!��
�>��O�O�O� �	��&� �"-�.�.�.���!�!� �"-�.�.�.���	���
������������� ��
���� ��
�
��!3�!?��'�(�(�D��J�J�6�6�!�#F�G�G�
G�"�I�V�I�t�I�7I����>�	8�h�.�'5�'7�'7�7�D�M�H�
"&���&+��#��>�	'��!�|�|�!%�����!&��� ��M������2�z�*�*�
6� �"4�5�5�5��E�3�'�'�
6�J��J�J�J�J��"�J�J�J�$�&I�J�J�J�J�����l�l�5�)�)�0����E�3�'�'�
6����� N�!'���U���!4�!4�6�6�6��Q�w�w� �!J�S�!J�!J�K�K�K����#��2�{�+�+�
H� �"E�F�F�F��L�#�.�.�
H� �!F�G�G�G��D�+�
@�
@���k�3�/�/�@�7�"�
�
�
�
��&�7�7�7�(�*6�7�7�7�7����
�K�K����[� 9� 9� @�A�A�A�A���S�1�1�@��K�K��,�,�,�,�#�%9�%+�V�D��,=�,=�%>�%>�@�@�@�"�
V�
V�	��q�=�=�$�%T��%T�%T�U�U�U�!������2�z�*�*�
G� �"8�9�9�9��D�#�&�&�

G�J��J�J�J�J��"�J�J�J�$�&I�J�J�J�J�����l�l�4�(�(�/����D�#�&�&�
G����� E�F�F�F��Q�w�w� �!I�C�!I�!I�J�J�J�&#�/�/��v�v�F�F�	��(�	�(�	�(��	E��2�~�~�!�0����1B�1B�A�F�F���"�}�}� �/����0@�0@�!�D�D���"�}�}� �/����0@�0@�!�D�D��6	��2�~�~��W�X�t�W�=�=��
��>�>�!#�!1�$�*�D�+9�%-�f�">�">�">�D�J��"�}�}� �g�g�t�W�=�=����>�>�"$�"2�4�;�%-�f�#>�#>�#>�D�K��"�}�}� �g�g�t�W�=�=����>�>�"$�"2�4�;�%-�f�#>�#>�#>�D�K�
����j�*�i� (�#�s� +�]�E� '�� '�� '�� /� #�T�3�� 1�=�
B�
B�
B�
B�
B��	��D�4�:�t�{�D�K�"H�I�I�
�
����G�G�I�I�I�I�������D������.�
����D�=�=��O�O�G�,�,�,��T�>�>��O�O�H�-�-�-��T�>�>��O�O�H�-�-�-��4��,�,�3��O�O�D�M�2�2�2�"���B��%�)�*�R��*@�*@�)��H�H�J�J�J�J��H�R�L�L�L���"����������
���s{�H�H3�L�L8�P#�#P=�DY�&^�8Z
�^�
Z�^�Z�B^�5A];�:^�;
^�^�^�^c��d|jj�d|j�d|j�d�}t	|��dkr
|dd�dz}|S)N�<z: returncode: z args: �>�P�Lz...>)rir)r2r�r�)r6�obj_reprs  r.rjzPopen.__repr__(sr��
B���'�
B�
B��?�
B�
B�37�9�
B�
B�
B�	��x�=�=�2�������}�v�-�H��r-c��|jSr1)r2r>s r.r�zPopen.universal_newlines3s���~�r-c�.�t|��|_dSr1)r1r2)r6r�s  r.r�zPopen.universal_newlines9s���0�1�1����r-c��|�||��}|�dd���dd��S)Nz
r��
)�decode�replace)r6r�r�r�s    r.�_translate_newlineszPopen._translate_newlines=s9���{�{�8�V�,�,���|�|�F�D�)�)�1�1�$��=�=�=r-c��|Sr1r,r>s r.�	__enter__zPopen.__enter__As���r-c�V�|jr|j���|jr|j���	|jr|j���|tkrA|jdkr-	|�|j���n#t$rYnwxYwd|_dS|���dS#|tkrC|jdkr-	|�|j���n#t$rYnwxYwd|_YdS|���wxYw)Nrr�)	rBrEr5r��KeyboardInterruptr3�_waitrr�)r6�exc_typerE�	tracebacks    r.�__exit__zPopen.__exit__Ds_���;�	 ��K�������;�	 ��K������	��z�
#��
� � �"�"�"��,�,�,��)�A�-�-���
�
�4�+A�
�B�B�B�B��)����������)*��&���
�I�I�K�K�K�K�K��#�,�,�,��)�A�-�-���
�
�4�+A�
�B�B�B�B��)����������)*��&�����
�I�I�K�K�K�K���sH� C�9B�
B"�!B"�D(�C8�7D(�8
D�D(�D�D(�D(c���|jsdS|j�|d|jzt|���|�|���|j�#t
�t
�|��dSdSdS)Nzsubprocess %s is still running)�sourcerr)�_child_createdr2r0�ResourceWarningrurtr�)r6�_maxsize�_warns   r.rlz
Popen.__del__`s����"�	��F��?�"�
�E�2�T�X�=�!�$�
0�
0�
0�
0�	
���x��0�0�0��?�"�w�':��N�N�4� � � � � �#�"�':�':r-c��t|d��s.tjtjtj��|_|jS�Nr$)r	r�rA�devnull�O_RDWRr$r>s r.�_get_devnullzPopen._get_devnullos3���t�Z�(�(�	;��G�B�J��	�:�:�D�M��}�r-c�^�|rU	|j�|��n9#t$rYn-t$r!}|jtjkrn�Yd}~nd}~wwxYw	|j���dS#t$rYdSt$r"}|jtjkrn�Yd}~dSd}~wwxYwr1)r��write�BrokenPipeErrorrr&�EINVALrE)r6r�r�s   r.�_stdin_writezPopen._stdin_writets����	�
��
� � ��'�'�'�'��"�
�
�
����
�
�
��9���,�,����D�D�D�D�����
����	��J����������	�	�	��D�D��	�	�	��y�E�L�(�(�������������	���s7��
A�	A�A�A�A4�4
B,�	B,�
B'�'B,c��	|jr|rtd���|��|js�|j|j|jg�d��dkr�d}d}|jr|�|��ns|jr3|j���}|j���n9|jr2|j���}|j���|�	��n�|�t��|z}nd}	|�|||��\}}np#t$rc|�)t|j|�|����}n|j}d|_	|�|���n#t"$rYnwxYw�wxYw	d|_n#d|_wxYw|�	|�|�����}||fS)Nz.Cannot send input after starting communicationr�rr�T)r,r=r�rBr5�countr��readrEr��_time�_communicatern�minr3�_remaining_timeror)r6r�rMrBr5�endtime�sigint_timeout�stss        r.r�zPopen.communicate�s+��	�"�&�	O�5�	O��M�N�N�N�

�O�D�$?�O�
�Z���d�k�2�8�8��>�>�!�C�C��F��F��z�
$��!�!�%�(�(�(�(���
$���)�)�+�+����!�!�#�#�#�#���
$���)�)�+�+����!�!�#�#�#��I�I�K�K�K�K��"��'�'�G�+�����
3�!%�!2�!2�5�'�7�!K�!K������$�

�

�

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

�����"/3��+�+��d��+�2�2�2�2��)�)�D�$8�$8��$A�$A�)�B�B�C����sC�D)�(F"�)AF�-F�F�
F�F�F�F�F"�"	F+c�,�	|���Sr1)rur>s r.r�z
Popen.poll�s��	��"�"�$�$�$r-c�.�	|�dS|t��z
Sr1)r�)r6r�s  r.r�zPopen._remaining_time�s��C��?��4��U�W�W�$�$r-c���	|�dS|st��|krFt|j||rd�|��nd|rd�|��nd����dS)Nr-r�)r�rr�r�)r6r��orig_timeout�
stdout_seq�
stderr_seq�skip_check_and_raises      r.�_check_timeoutzPopen._check_timeout�s���@��?��F��	I�5�7�7�W�#4�#4� ��I�|�3=�G�3�8�8�J�/�/�/�4�3=�G�3�8�8�J�/�/�/�4�I�I�I�
I�$5�#4r-c�8�	|�t��|z}	|�|���S#t$rc|�)t|j|�|����}n|j}d|_	|�|���n#t$rYnwxYw�wxYw)Nr�r)r�rornr�r3r�r)r6rMr�r�s    r.r�z
Popen.wait�s���K����g�g��'�G�	��:�:�g�:�.�.�.�� �	�	�	�
�"�!$�T�%;�%)�%9�%9�'�%B�%B�"D�"D���"&�!7��%&�D�"�
��
�
�>�
�2�2�2�2��!�
�
�
���
�����	���s.�,�AB�0B�B�
B�B�B�Bc���t|dd��}tj��5}tra|dkr|�|j��|dkr|�|j��|dkr|�|j��n�|dkr,|dkr&||kr |�tj|��|dkr,|dkr&||kr |�tj|��|dkr,|dkr&||kr |�tj|��|� |�tj|��ddd��n#1swxYwYd|_dS)Nr$r{T)	r��
contextlib�	ExitStackr��callbackrdr�rEr4)	r6rVrWrXrYrZr[�
devnull_fd�stacks	         r.�_close_pipe_fdszPopen._close_pipe_fdss���
�T�:�t�4�4�
�
�
!�
#�
#�	5�u��

7��b�=�=��N�N�7�=�1�1�1��r�>�>��N�N�8�>�2�2�2��r�>�>��N�N�8�>�2�2�2���b�=�=�X��^�^��:�8M�8M��N�N�2�8�W�5�5�5��r�>�>�g��m�m��J�8N�8N��N�N�2�8�X�6�6�6��r�>�>�g��m�m��J�8N�8N��N�N�2�8�X�6�6�6��%����r�x��4�4�4�#	5�	5�	5�	5�	5�	5�	5�	5�	5�	5�	5����	5�	5�	5�	5�('+��#�#�#s�D!E�E�Ec#�4K�	g}	|V�dS#t|d��r|�|j��|`|D]X}	tr*t	|t
��r|���ntj|���I#t$rY�UwxYw�xYwrz)
r	r�r$r�r-r`rdr�rEr)r6r\r]s   r.�_on_error_fd_closerzPopen._on_error_fd_closers�����Q���	��N�N�N�N�N��	��t�Z�(�(�
"�����
�.�.�.��M��
�
���!�%�j��V�&<�&<�%����
�
�
�
��������������D��������s.�
�2B�AB�B�
B�B�B�Bc�	�	|�|�|�dSd\}}d\}}d\}}	|���5}
|�qtjtj��}|�Ptjdd��\}}t|��}|
�|��tj|��n�|tkrNtjdd��\}}t|��t|��}}|
�	||f��n�|tkr'tj|�
����}nPt|t��rtj|��}n&tj|�����}|�|��}|�qtjtj��}|�Ptjdd��\}}t|��}|
�|��tj|��n�|tkrNtjdd��\}}t|��t|��}}|
�	||f��n�|tkr'tj|�
����}nPt|t��rtj|��}n&tj|�����}|�|��}|�qtjtj��}	|	�Ptjdd��\}}	t|	��}	|
�|	��tj|��n�|tkrNtjdd��\}}	t|��t|	��}	}|
�	||	f��n�|t(kr|}	n�|tkr'tj|�
����}	nPt|t��rtj|��}	n&tj|�����}	|�|	��}	ddd��n#1swxYwY||||||	fS)N)r{r{r{r{r{r{�r{r{r)r�rk�GetStdHandler�
CreatePiper`r�rcrr�rr>�
get_osfhandler}r-rf�fileno�_make_inheritablerrr)r6r�rBr5rVrWrXrYrZr[�
err_close_fds�_s            r.r=zPopen._get_handles7si��
��}���F�N�/�/� &��G�X� &��G�X� &��G�X��)�)�+�+�=
<�}��=�%�2�7�3K�L�L�G���%,�%7��a�%@�%@�
���"(��/�/��%�,�,�W�5�5�5��+�A�.�.�.���d�]�]�(/�(:�4��(C�(C�%�G�X�(.�w�����9I�9I�X�G�!�(�(�'�8�)<�=�=�=�=��g�%�%�$�2�4�3D�3D�3F�3F�G�G�G�G���s�+�+�C�$�2�5�9�9�G�G�%�2�5�<�<�>�>�B�B�G��0�0��9�9���>�&�3�G�4M�N�N�H��'�&-�&8��q�&A�&A���8�#)�(�#3�#3��%�,�,�X�6�6�6��+�A�.�.�.���t�^�^�(/�(:�4��(C�(C�%�G�X�(.�w�����9I�9I�X�G�!�(�(�'�8�)<�=�=�=�=��w�&�&�%�3�D�4E�4E�4G�4G�H�H�H�H����,�,�E�%�3�F�;�;�H�H� &�3�F�M�M�O�O�D�D�H��1�1�(�;�;���>�&�3�G�4L�M�M�H��'�&-�&8��q�&A�&A���8�#)�(�#3�#3��%�,�,�X�6�6�6��+�A�.�.�.���t�^�^�(/�(:�4��(C�(C�%�G�X�(.�w�����9I�9I�X�G�!�(�(�'�8�)<�=�=�=�=��v�%�%�'�H�H��w�&�&�%�3�D�4E�4E�4G�4G�H�H�H�H����,�,�E�%�3�F�;�;�H�H� &�3�F�M�M�O�O�D�D�H��1�1�(�;�;��{=
<�=
<�=
<�=
<�=
<�=
<�=
<�=
<�=
<�=
<�=
<����=
<�=
<�=
<�=
<�~�X��X��X�'�
's�P8Q1�1Q5�8Q5c��	tjtj��|tj��ddtj��}t	|��S)Nrr�)rk�DuplicateHandle�GetCurrentProcess�DUPLICATE_SAME_ACCESSr`)r6�handle�hs   r.r�zPopen._make_inheritable�sI��D��'��)�+�+�V��)�+�+�Q���-�/�/�A��!�9�9�r-c�6�	td�|D����S)Nc�h�h|]/}|dzdks"tj|��tjk�-|��0S)�)rk�GetFileType�FILE_TYPE_CHAR)�.0r�s  r.�	<setcomp>z,Popen._filter_handle_list.<locals>.<setcomp>�sT��4�4�4�F�"�S�L�C�/�/�#�/��7�7�#�2�3�3� �3�3�3r-)r])r6rZs  r.�_filter_handle_listzPopen._filter_handle_list�s7��
A��4�4�k�4�4�4�5�5�
5r-c�8�	t|t��rn�t|t��r"|
rtd���t	|g��}nKt|t
j��r"|
rtd���t	|g��}nt	|��}|�tj|��}|�t��}n|�	��}d|||fv}|r/|xj
tjzc_
||_
||_||_|j}t#|od|vo|d��}|s|r�|r�|�	ix}|_t%|�dg����x}|d<|r/|t)|��t)|��t)|��gz
}|�|��|dd�<|r|st-jdt0��d}|
r�|xj
tjzc_
tj|_|s�t
j�d��}|sot
j�dd	��}t
j�|d
d��}t
j�|��stAd���t
j�|��r|}n|}d
�!||��}|�tj|��}tEj#d||||��	tj$||ddt)|��|	|||�	�	\}}} }!|�%|||
|||��n#|�%|||
|||��wxYwd|_&tO|��|_(| |_)tj*|��dS)Nz$bytes args is not allowed on Windows�0path-like args is not allowed when shell is truer{rZz?startupinfo.lpAttributeList['handle_list'] overriding close_fdsF�ComSpec�
SystemRootr��System32zcmd.exez:shell not found: neither %ComSpec% nor %SystemRoot% is setz
{} /c "{}"�subprocess.PopenT)+r-r5�bytesr.r�r��PathLiker�r&r\rSrkrrTrUrVrXr1r]r�rfr�r�r�r/rrrW�environ�pathr��isabs�FileNotFoundErrorr�rv�audit�
CreateProcessr�rur`�_handler0rc)"r6r�rGrHrIrPrJrKrLrMr�rVrWrXrYrZr[�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_listrZ�comspec�system_root�hp�htr0�tids"                                  r.rCzPopen._execute_child�s��
7��$��$�$�
*���D�%�(�(�

*��L�#�$J�K�K�K�#�T�F�+�+����D�"�+�.�.�
*��5�#�%4�5�5�5�#�T�F�+�+���#�D�)�)���%��[��4�4�
��"�)�m�m���*�.�.�0�0�� ��(�H�(E�E�O��
1��#�#�w�'C�C�#�#�(/��%�)1��&�(0��%�(�8�N�#�N�%B�$1�^�$C�%B�$2�=�$A� C� C��
 �
&�O�
&�	�
&�!�)�CE�E�N�[�%@���+�+�M�2�>�>�?�?�@��n�]�;�#�P��C��L�L�#�h�-�-��X���#O�O�K�!%�!9�!9�+�!F�!F��A�A�A���&�$�N� �
�'=�>L�N�N�N�!&�I��
;��#�#�w�'C�C�#�#�*1�/��'�!�)�!�j�n�n�Y�7�7�G�"�r�&(�j�n�n�\�2�&F�&F��"$�'�,�,�{�J�	�"R�"R��!�w�}�}�W�5�5�r�"3�4p�"q�"q�q��w�}�}�W�-�-�-�%,�
��(�G�#�*�*�G�T�:�:�����k�#�&�&���I�(�*�d�C��E�E�E�
8�#*�#8��T�)-�t�),��]�);�);�)6�),�),�)4�$6�$6� ��B��S��$�$�W�h�%,�h�%,�h�8�8�8�8���$�$�W�h�%,�h�%,�h�8�8�8�8����
#'�D��!�"�:�:�D�L��D�H����#�#�#�#�#s�;/M�M!c�t�	|j�*||jd��|kr||j��|_|jS�Nr)r2r�)r6rs�_WaitForSingleObject�_WAIT_OBJECT_0�_GetExitCodeProcesss     r.ruzPopen._internal_pollsG��
���&�'�'���a�8�8�N�J�J�&9�&9�$�,�&G�&G�D�O��?�"r-c�.�	|�
tj}n|dkrd}nt|dz��}|j�]tj|j|��}|tjkrt|j|���tj	|j��|_|jS)Nri�)
rk�INFINITErfr2�WaitForSingleObjectr��WAIT_TIMEOUTrr��GetExitCodeProcess)r6rM�timeout_millisr�s    r.rozPopen._wait,s���?���!(�!1����A���!"���!$�W�t�^�!4�!4����&� �4�T�\�5C�E�E���W�1�1�1�(���G�<�<�<�")�"<�T�\�"J�"J����?�"r-c�|�|�|�����|���dSr1)r�r�rE)r6�fh�buffers   r.�
_readerthreadzPopen._readerthread>s-���M�M�"�'�'�)�)�$�$�$��H�H�J�J�J�J�Jr-c�Z�|jrht|d��sXg|_tj|j|j|jf���|_d|j_|j���|j	rht|d��sXg|_
tj|j|j	|j
f���|_d|j_|j���|jr|�
|��|j�[|j�|�|����|j���rt#|j|���|j	�[|j�|�|����|j���rt#|j|���d}d}|jr |j}|j���|j	r |j
}|j	���|r|dnd}|r|dnd}||fS)N�_stdout_buff)�targetr�T�_stderr_buffr)rBr	r�r(�Threadr��
stdout_thread�daemon�startr5r��
stderr_threadr�r�r�r��is_aliverr�rE)r6r�r�r�rBr5s      r.r�zPopen._communicateCsI���{�
+�7�4��#@�#@�
+�$&��!�!�(��0B�/3�{�D�<M�.N�P�P�P��"�-1��"�)��"�(�(�*�*�*��{�
+�7�4��#@�#@�
+�$&��!�!�(��0B�/3�{�D�<M�.N�P�P�P��"�-1��"�)��"�(�(�*�*�*��z�
)��!�!�%�(�(�(�
�{�&��"�'�'��(<�(<�W�(E�(E�F�F�F��%�.�.�0�0�B�(���L�A�A�A��{�&��"�'�'��(<�(<�W�(E�(E�F�F�F��%�.�.�0�0�B�(���L�A�A�A��F��F��{�
$��*����!�!�#�#�#��{�
$��*����!�!�#�#�#�#)�2�V�A�Y�Y�d�F�"(�2�V�A�Y�Y�d�F��F�#�#r-c�~�	|j�dS|tjkr|���dS|tjkr&tj|jtj��dS|tjkr&tj|jtj��dStd�
|�����)NzUnsupported signal: {})r2r;�SIGTERM�	terminate�CTRL_C_EVENTr�r�r0�CTRL_BREAK_EVENTr=r��r6�sigs  r.�send_signalzPopen.send_signalus���/���*����f�n�$�$���� � � � � ���+�+�+�����&�"5�6�6�6�6�6���/�/�/�����&�"9�:�:�:�:�:� �!9�!@�!@��!E�!E�F�F�Fr-c���	|j�dS	tj|jd��dS#t$r5tj|j��}|tjkr�||_YdSwxYw)Nr�)r2rk�TerminateProcessr��PermissionErrorr��STILL_ACTIVE)r6�rcs  r.r�zPopen.terminate�s��)���*���
%��(���q�9�9�9�9�9��"�
%�
%�
%��/���=�=����-�-�-��"$������

%���s�(�;A'�&A'c��	d\}}d\}}d\}}	|���5}
|�n�|tkrstj��\}}|
�||f��|jdkr:t
td��r%tj|tj|j��nL|tkr|�
��}n,t|t��r|}n|�
��}|�n�|tkrstj��\}}|
�||f��|jdkr:t
td��r%tj|tj|j��nL|tkr|�
��}n,t|t��r|}n|�
��}|�n�|tkrstj��\}}	|
�||	f��|jdkr:t
td��r%tj|	tj|j��n|tkr(|dkr|}	nktj�
��}	nL|tkr|�
��}	n,t|t��r|}	n|�
��}	ddd��n#1swxYwY||||||	fS)Nr�r�F_SETPIPE_SZr{)r�rr��piper�rr	�fcntlr�rr}r-rfr�rrv�
__stdout__)r6r�rBr5rVrWrXrYrZr[r�s           r.r=zPopen._get_handles�s���
�!'��G�X� &��G�X� &��G�X��)�)�+�+�1
/�}��=���d�]�]�(*��	�	�%�G�X�!�(�(�'�8�)<�=�=�=��}�q�(�(�W�U�N�-K�-K�(���H�e�.@�$�-�P�P�P���g�%�%�"�/�/�1�1�G�G���s�+�+�-�#�G�G�$�l�l�n�n�G��>���t�^�^�(*��	�	�%�G�X�!�(�(�'�8�)<�=�=�=��}�q�(�(�W�U�N�-K�-K�(���H�e�.@�$�-�P�P�P���w�&�&�#�0�0�2�2�H�H����,�,�/�%�H�H� &�}�}���H��>���t�^�^�(*��	�	�%�G�X�!�(�(�'�8�)<�=�=�=��}�q�(�(�W�U�N�-K�-K�(���H�e�.@�$�-�P�P�P���v�%�%��2�~�~�#+���#&�>�#8�#8�#:�#:����w�&�&�#�0�0�2�2�H�H����,�,�/�%�H�H� &�}�}���H�c1
/�1
/�1
/�1
/�1
/�1
/�1
/�1
/�1
/�1
/�1
/����1
/�1
/�1
/�1
/�f�X��X��X�'�
's�JK�K�Kc���	|�tj}i}|r9g}dD]/}
tt|
d��}|�|�|���0||d<g}|||	fD])}|dkr!|�tj|f���*|df|df|
dffD]-\}}|dkr"|�tj||f���.|r||d<tj|||fi|��|_d|_	|�
|||||	|
��dS)	N)�SIGPIPE�SIGXFZ�SIGXFSZ�	setsigdefr{rr�r��file_actionsT)r�r�r�r;r��POSIX_SPAWN_CLOSE�POSIX_SPAWN_DUP2rr0rur�)r6r�rGrKrNrVrWrXrYrZr[r��sigset�signame�signumrr]�fd2s                  r.�_posix_spawnzPopen._posix_spawn�sh��
:��{��j���F��
-���?�.�.�G�$�V�W�d�;�;�F��)��
�
�f�-�-�-��&,��{�#��L���'�2�
D�
D����8�8� �'�'��)=�r�(B�C�C�C���!���1�
��1�
��
H�
H���C�
��8�8� �'�'��)<�b�#�(F�G�G�G���
6�)5��~�&��~�j�$��F�F�v�F�F�D�H�"&�D��� � ��(�!(�(�!(�(�
4�
4�
4�
4�
4r-c�X
��	t|ttf��r|g}n>t|tj��r|
rtd���|g}nt
|��}|
r'ttd��rdnd}|dg|z}�r�|d<��|d�tj	d�|||��trtj����r`|�^|s\|sZ|�X|dks|d	krL|dks|d	kr@|dks|d	kr4|s2|dkr,|�*|�(|�&|dkr |�
|�|||||
|||�
�
dS�}tj��\}}g}|d
kr/|�|��tj|��}|d
k�/|D]}tj|���		|�qg}|���D]Y\}} tj|��}d|vrt)d���|�|dztj| ��z���Znd}tj����tj����r�f}!n-t+�fd
�tj|��D����}!t/|��}"|"�|��t3||!|t+t5t7t8|"������|||||
|||||||||||||t:��|_d|_tj|��n#tj|��wxYw|� |||
|||��tC��}#	tj"|d��}$|#|$z
}#|$rtG|#��dkrn�1	tj|��n#tj|��wxYw|#�rt	tj$|jd��\}%}&|%|jkr|�%|&��ntj&|_'n#tP$rYnwxYw	|#�)dd	��\}'}(})|)�*��})n6#t($r)d}'d}(d�+t|#����})YnwxYwtYtZ|'�*d��t\��}*t_|*t`��r_|(r]t9|(d��}+|)dkrd})|},n
|)dkrd})d},n|},|+dkrtj1|+��})|,�
|*|+|)|,���|*|+|)���|*|)���dS)Nr��getandroidapilevelz/system/bin/shz/bin/shz-crr�r{r�r��=z!illegal environment variable namec3�|�K�|]6}tj�tj|�����V��7dSr1)r�r�r��fsencode)r��dirrGs  �r.�	<genexpr>z'Popen._execute_child.<locals>.<genexpr>XsQ�����0>�0>� #��G�L�L���S�)9�)9�:�F�F�0>�0>�0>�0>�0>�0>r-TiP��:sSubprocessError�0z#Bad exception data from child: {!r}�ascii�znoexec:chdirr��noexec)2r-r5r�r�r�r.r]r	rvr��_USE_POSIX_SPAWNr��dirnamerr�r��duprEr�rr=r
�
get_exec_path�set�add�
_fork_exec�sortedr�rf�
_USE_VFORKr0rur��	bytearrayr�r��waitpid�_handle_exitstatusrwr2�ChildProcessErrorrrhr�r��builtinsr�
issubclassr�strerror)-r6r�rGrHrIrPrJrKrLrMr�rVrWrXrYrZr[rNrQrRrUrrOr�
unix_shell�orig_executable�errpipe_read�
errpipe_write�low_fds_to_close�low_fd�env_list�kr��executable_list�fds_to_keep�errpipe_data�partr0r��exception_name�	hex_errno�err_msg�child_exception_type�	errno_num�err_filenames-  `                                          r.rCzPopen._execute_child�s[���
2��$��e��-�-�
"��v����D�"�+�.�.�
"��5�#�%4�5�5�5��v����D�z�z���
)�"�#�';�<�<�L�.�.�BK��"�D�)�D�0���)�(�D��G��!�!�!�W�
��I�(�*�d�C��E�E�E� �
�����
�3�3�
�"�*�%�+�$�+��� �B���'�A�+�+�!�R���8�a�<�<�!�R���8�a�<�<�-�,8�%��+�+���������	�	��!�!�$�
�C��")�8�")�8�")�8�5�5�5���(�O�
+-�'�)�)�'�L�-�!���!�#�#� �'�'�
�6�6�6� "��}� 5� 5�
� �!�#�#�+�
!�
!����� � � � �7
'�&,���#%��$'�I�I�K�K�G�G�D�A�q� "��A���A�#�q�y�y�&0�1T�&U�&U� U�$�O�O�A��H�r�{�1�~�~�,E�F�F�F�F�	G�$(��!#��Z�!8�!8�J��w���z�2�2�>�+5�-���+0�0>�0>�0>�0>�')�'7��'<�'<�0>�0>�0>�+>�+>��#&�h�-�-�K��O�O�M�2�2�2�)� �/�%�u�V�C��[�4I�4I�-J�-J�'K�'K���#�X�w��#�X�(�-�+�->�)�3��c�5�&�
�	 4�	 4�D�H�+/�D�'��H�]�+�+�+�+��B�H�]�+�+�+�+�����$�$�W�h�%,�h�%,�h�8�8�8� )�{�{����7�<��7�7�D� �D�(�L���3�|�#4�#4�u�#<�#<��	�����&�&�&�&�����&�&�&�&�����*
4��!�z�$�(�A�6�6�H�C���d�h����/�/��4�4�4�4�*-�+�����(�����D�����7�(�.�.�t�Q�7�7�7�N�I�w�
&�n�n�.�.�G�G��!�7�7�7�%7�N� $�I�C�J�J�"'��"5�"5�7�7�G�G�G�7����
(/� �.�"7�"7��"@�"@�'�()�()�$��2�G�<�<�G��G� #�I�r� 2� 2�I��.�0�0�"$��'*��� �H�,�,�"$��'+���'6�� �A�~�~�"$�+�i�"8�"8��#�/�2�2�9�g�|�T�T�T�2�2�9�g�F�F�F�*�*�7�3�3�3�U*
4�*
4sE�E L�<N�L'�'AN�N0�7AP�
P�P�.Q�0Q:�9Q:c�d�	||��r||��|_dS||��|_dSr1)r2)r6r��_waitstatus_to_exitcode�_WIFSTOPPED�	_WSTOPSIGs     r.r#zPopen._handle_exitstatus�sG��
M��{�3���
?�#,�9�S�>�>�/�����"9�"9�#�">�">����r-c���	|j��|j�d��sdS	|j� |j|j���S||j|��\}}||jkr|�|��n3#t$r&}|�||_n|j|krd|_Yd}~nd}~wwxYw|j���n#|j���wxYw|jS)NFr)r2r*�acquire�releaser0r#rr&)r6rs�_waitpid�_WNOHANG�_ECHILDr0r��es        r.ruzPopen._internal_poll�s��
���&��)�1�1�%�8�8� � �4�1���2�#���&�.�.�0�0�0�0� (�x���(�;�;�H�C���d�h����/�/��4�4�4����	,�	,�	,�!�-�*4������G�+�+�+,������������	,�����&�.�.�0�0�0�0��D�&�.�.�0�0�0�0�����?�"s5�
B�
4B�C�
B2�B-�(C�-B2�2C�C*c�|�		tj|j|��\}}n#t$r|j}d}YnwxYw||fSr�)r�r"r0r$)r6�
wait_flagsr0r�s    r.�	_try_waitzPopen._try_wait�s\��L�
��Z���*�=�=�
��c�c��$�
�
�
��h������
������:�s�!�7�7c��	|j�|jS|��Ct��|z}d}	|j�d��r�	|j�	|j����nj|�tj��\}}||jkr1|�	|��	|j����n	|j���n#|j���wxYw|�
|��}|dkrt|j|���t|dz|d��}tj|����/|j�r|j5|j�
	ddd��nV|�d��\}}||jkr|�	|��ddd��n#1swxYwY|j�r|jS)Ng����Mb@?TFrr�g�������?)r2r�r*r?r@rGr��WNOHANGr0r#r�rr�r��time�sleep)r6rMr��delayr0r��	remainings       r.rozPopen._wait�s?��=���*���&��"��'�'�G�+����&��)�1�1�%�8�8�
9�	9�#��:� %�!�.�6�6�8�8�8�8�
*.����
�)C�)C�J�S�#�"�d�h��� $� 7� 7�� <� <� <� %� �.�6�6�8�8�8�8�	 /�!�.�6�6�8�8�8�8��D�.�6�6�8�8�8�8���� $� 4� 4�W� =� =�I� �A�~�~�,�T�Y��@�@�@����	�9�c�:�:�E��J�u�%�%�%�!&�$�o�-��+�9�9��?�6�!�9�9�9�9�9�9�9�&*�^�^�A�%6�%6�
��c��$�(�?�?� �3�3�C�8�8�8�9�9�9�9�9�9�9�9�9�9�9����9�9�9�9��o�-��?�"s+�C�%AC�C9�$	F=�98F=�=G�Gc�<	�|jr_|jsX	|j���n#t$rYnwxYw|s+	|j���n#t$rYnwxYwd}d}|js3i|_|jrg|j|j<|jrg|j|j<|jr|j|j}|jr|j|j}|�|��|j	rt|j	��}t��5}|jr'|r%|�|jtj��|jr1|jjs%|�|jtj��|jr1|jjs%|�|jtj��|����r|�|��}|�/|dkr)|�||||d���t)d���|�|��}	|�||||��|	D�]v\}
}|
j|jur�||j|jt0z�}	|xjt3j|
j|��z
c_|jt9|j	��kr3|�|
j��|
j�����#t$r6|�|
j��|
j���Y��wxYw|
j|j|jfvrtt3j|
jd��}
|
s3|�|
j��|
j���|j|
j�|
����x|�����ddd��n#1swxYwY|� |�|�����|�d�!|��}|�d�!|��}|j"rZ|�+|�#||jj$|jj%��}|�+|�#||jj$|jj%��}||fS)NrT)r�zN_check_timeout(..., skip_check_and_raise=True) failed to raise TimeoutExpired.i�r�r-)&r�r,�flushr�rE�_fileobj2outputrBr5�_save_inputr+�
memoryview�_PopenSelector�register�	selectors�EVENT_WRITErb�
EVENT_READ�get_mapr�r��RuntimeError�select�fileobj�
_input_offset�	_PIPE_BUFr�rr]r��
unregisterr�r�r�r�r2rjr�r�)r6r�r�r�rBr5�
input_view�selectorrM�ready�key�events�chunkr�s              r.r�zPopen._communicatesU���z�
�$�"=�
���J�$�$�&�&�&�&��&�����D���������
�(�(�*�*�*�*��*�����������F��F��.�
;�')��$��;�;�8:�D�(���5��;�;�8:�D�(���5��{�
;��-�d�k�:���{�
;��-�d�k�:�����U�#�#�#��{�
5�'���4�4�
��!�!�*
K�X��:�I�%�I��%�%�d�j�)�2G�H�H�H��;�I�t�{�'9�I��%�%�d�k�9�3G�H�H�H��;�I�t�{�'9�I��%�%�d�k�9�3G�H�H�H��&�&�(�(�"K�"�2�2�7�;�;�G��*�w��{�{��+�+�G�\�,2�F�AE�,�G�G�G�+�>�?�?�?�%�O�O�G�4�4�E��'�'���v�v�N�N�N�
(-�K�K���V��;�$�*�4�4�$.�t�/A�/3�/A�I�/M�0N�%O�E�8� $� 2� 2�b�h�s�v�u�6M�6M� M� 2� 2�
$(�#5��T�[�9I�9I�#I�#I�$,�$7�$7���$D�$D�$D�$'�K�$5�$5�$7�$7�$7���
$3�4�4�4� (� 3� 3�C�K� @� @� @� #�� 1� 1� 3� 3� 3� 3� 3�4����!�[�T�[�$�+�,F�F�F�#%�7�3�6�5�#9�#9�D�#'�4� (� 3� 3�C�K� @� @� @� #�� 1� 1� 3� 3� 3� �0���=�D�D�T�J�J�J��E�&�&�(�(�"K�*
K�*
K�*
K�*
K�*
K�*
K�*
K�*
K�*
K�*
K�*
K����*
K�*
K�*
K�*
K�X
�I�I�d�2�2�7�;�;�I�<�<�<��!����&�)�)���!����&�)�)���~�
J��%�!�5�5�f�6:�k�6J�6:�k�6H�J�J�F��%�!�5�5�f�6:�k�6J�6:�k�6H�J�J�F��F�#�#sV�*�
7�7�A�
A$�#A$�EO�/(K(�AO�(=L(�%O�'L(�(B#O�O�Oc���|jrT|j�Od|_||_|�A|jr<|j�|jj|jj��|_dSdSdSdSdSr�)r�r+r\r2�encoder�r�)r6r�s  r.rQzPopen._save_inputts����z�
H�d�k�1�%&��"�#����$���$�"&�+�"4�"4�T�Z�5H�59�Z�5F�#H�#H�D�K�K�K�	
H�
H�1�1�%�$�$�$r-c��	|���|j�dS	tj|j|��dS#t
$rYdSwxYwr1)r�r2r�r�r0�ProcessLookupErrorr�s  r.r�zPopen.send_signal�sb��/�"
�I�I�K�K�K���*���

�����#�&�&�&�&�&��%�
�
�
����
���s�<�
A
�	A
c�F�	|�tj��dSr1)r�r;r�r>s r.r�zPopen.terminate��#��
����V�^�,�,�,�,�,r-c�F�	|�tj��dSr1)r�r;�SIGKILLr>s r.r�z
Popen.kill�rjr-)r{NNNNNTFNNNNrTFr,rG)Fr1);r)r*r+rur7rjr�r�r�r�rIr�rJrjrlrrrvrwr�r�rlr}r�r�r�r�r�r�r�r��contextmanagerr�r�r=r�r�rCrkr��
WAIT_OBJECT_0r�ruror�r�r�r�r�rr;r<r=r#rArBr&�ECHILDrGrQr,r-r.rr�s�������6�n�N�48�15�,0�EI�12�9>��
�'+�$�T��t�$�b�2�#������B���$��E�$6�7�7��
����X��
��2�2���2�>�>�>�������8 #�{�(�-�
!�
!�
!�
!����
���2A �A �A �A �H%�%�%�%�%�%�-2�	I�	I�	I�	I�����.+�+�+�:�������&�u
-�L	'�L	'�L	'�^	�	�	�
	5�
	5�
	5�}	$�}	$�}	$�~-1�%,�%@�&�4�$+�$>�	#�	#�	#�	#�"	#�	#�	#�$	�	�	�
0	$�0	$�0	$�d	G�	G�	G�
	%�
	%�
	%�����=	'�=	'�=	'�@%	4�%	4�%	4�Ng	4�g	4�g	4�V8O�+6�)2�
	?�
	?�
	?�
	?�-1�8�!�5�<� 	#� 	#� 	#� 	#�F
	�
	�
	�&	#�&	#�&	#�Rc	$�c	$�c	$�L		H�		H�		H�	�	�	�@	-�	-�	-�
	-�	-�	-�	-�	-r-r)[r%r&r@r�r�rJr;rvr(r�r�rr�r�r�r7�__all__r>r��ModuleNotFoundErrorr
r%rkrrrrrrrrrrrrr r!r"r#r$r%r��_posixsubprocessr'rr"rA�waitstatus_to_exitcoder;�
WIFSTOPPEDr<�WSTOPSIGr=rIrBrZrU�	Exceptionrr
rr&rfr`r�r]r	rnrS�SelectSelectorrtrprrrr�r�r�rrr�objectrrr�r	r
rrr rr,r-r.�<module>rys��� �D��������	�	�	�	�
�
�
�
�	�	�	�	�����
�
�
�
�
�
�
�
�������������#�#�#�#�#�#�������L�L�L�L�������E�E�E�����D�D�D����M�M�M��J�J�������J�J�J�������%;�;��
�'��N�N�N�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O��N�N�	N�	N�	N�	O�	O�	O�	O���<�<�<�<�<�<��:��"$�";���m���K�	��:����
���"&�����	����M�M�M�����'�&�&�&�&�i�&�&�&�"�"�"�"�"��"�"�"�J�����_����8�62�:�:�:�:�:�:�:�:�.����������,���
�C�0�0�I�
�w�y�.�)�)�2�"�/���"�1�����G�
�
�
�
��G����
��	��
�����:�:�:�z$�$�$�("������"
�
�
�&&*�2 �2 �2 �2 �2 �j!2�!2�!2�!2�!2�v�!2�!2�!2�J�5�$�e�CC�CC�CC�CC�CC�LC�C�C�R&*�$������@ $�D�
E�
E�
E�
E�
E�-�-�-�d$�#�%�%��
�
�{-�{-�{-�{-�{-�{-�{-�{-�{-�{-s!�>�A�A�A�A!� A!

Zerion Mini Shell 1.0