AlkantarClanX12

Your IP : 52.15.170.196


Current Path : /proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/_bootsubprocess.cpython-311.pyc

�

c��fs
��8�dZddlZGd�d��Zd�Zd�ZdS)z�
Basic subprocess implementation for POSIX which only uses os functions. Only
implement features required by setup.py to build C extension modules when
subprocess is unavailable. setup.py is not used on Windows.
�Nc��eZdZdd�Zd�ZdS)�PopenNc�0�||_||_d|_dS�N)�_cmd�_env�
returncode)�self�cmd�envs   �6/opt/alt/python311/lib64/python3.11/_bootsubprocess.py�__init__zPopen.__init__s����	���	������c��tj��}|dkr�	|j�,tj|jd|j|j��n%tj|jd|j��tjd��nJ#tjd��wxYwtj|d��\}}tj|��|_	|j	S)Nr�)
�os�forkr�execver�execv�_exit�waitpid�waitstatus_to_exitcoder	)r
�pid�_�statuss    r
�waitz
Popen.waits����g�i�i���!�8�8�
��9�(��I�d�i��l�D�I�t�y�A�A�A�A��H�T�Y�q�\�4�9�5�5�5��������������������
�3��*�*�I�A�v� �7��?�?�D�O���s�AB�Br)�__name__�
__module__�__qualname__rr�rr
rrs7����������
����rrc���g}dD]W\}}tt|��t|��dz��D]$}|�t|�����%�X|�d��d�|��}t|ttf��r|}nt|t��r|g}ndS|D],}t|t��sdS|sdS|D]
}||vrdS��-dS)N))�a�z)�A�Z)�0�9rz./-�FT)	�range�ord�append�chr�join�
isinstance�tuple�list�str)r�
safe_chars�first�last�ch�
check_strs�args       r
�
_check_cmdr8$s2���J�;�'�'���t���E�
�
�C��I�I��M�2�2�	'�	'�B����c�"�g�g�&�&�&�&�	'����e��������$�$�J��#��t�}�%�%���
�
�	�C��	�	���U�
�
��u������#�s�#�#�	��5�5��	��5�5��	�	�B���#�#��u�u�u�$�	��4rc��|rtt|�����t|��std|�����d}t	|t
��sd�|��}|�d|��}	tj|��}tj	|��}|rtd|�d|�����	t|d��5}|���}ddd��n#1swxYwYn#t$rd}YnwxYw	tj
|��n:#t$rYn.wxYw#	tj
|��w#t$rYwwxYwxYw|S)	Nzunsupported command: zcheck_output.tmp� z >zCommand z returned non-zero exit status �rbr)�NotImplementedError�reprr8�
ValueErrorr.r1r-r�systemr�open�read�FileNotFoundError�unlink�OSError)r�kwargs�tmp_filenamer�exitcode�fp�stdouts       r
�check_outputrJBs���
�0�!�$�v�,�,�/�/�/��c�?�?�:��8��8�8�9�9�9�%�L��c�3�����h�h�s�m�m��
�
"�
"�L�
"�
"�C����3�����,�V�4�4���	:��9��9�9�,4�9�9�:�:�
:�	��l�D�)�)�
#�R�������
#�
#�
#�
#�
#�
#�
#�
#�
#�
#�
#����
#�
#�
#�
#��� �	�	�	��F�F�F�	����	��I�l�#�#�#�#���	�	�	��D�	�����	��I�l�#�#�#�#���	�	�	��D�	��������Ms��4?D)�4C1�C%�C1�%C)�)C1�,C)�-C1�0D)�1D�=D)�?D�D)�D�
D&�%D&�)E�+E�?E�
E
�
E�E
�
E)�__doc__rrr8rJr rr
�<module>rLsj����

�	�	�	�
��������2���<����r