Your IP : 18.116.85.111


Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/_bootsubprocess.cpython-310.opt-1.pyc

o

6��fs
�@s.dZddlZGdd�d�Zdd�Zdd�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@seZdZddd�Zdd�ZdS)�PopenNcCs||_||_d|_dS�N)�_cmd�_env�
returncode)�self�cmd�env�r
�6/opt/alt/python310/lib64/python3.10/_bootsubprocess.py�__init__s
zPopen.__init__c	Cs�t��}|dkr=z.|jdurt�|jd|j|j�nt�|jd|j�Wt�d�|j	SWt�d�|j	St�d�wt�|d�\}}t�|�|_	|j	S)Nr�)
�os�forkr�execver�execv�_exit�waitpid�waitstatus_to_exitcoder)r�pid�_�statusr
r
r�waits

�
�z
Popen.waitr)�__name__�
__module__�__qualname__rrr
r
r
rrs
rcCs�g}dD]\}}tt|�t|�d�D]	}|�t|��qq|�d�d�|�}t|ttf�r2|}nt|t�r;|g}ndS|D]}t|t�sIdS|sNdS|D]
}||vrZdSqPq?dS)N))�a�z)�A�Z)�0�9r
z./-�FT)	�range�ord�append�chr�join�
isinstance�tuple�list�str)rZ
safe_chars�firstZlastZchZ
check_strs�argr
r
r�
_check_cmd$s.�



��r.cKs|rtt|���t|�std|����d}t|t�sd�|�}|�d|��}zQt�|�}t�	|�}|r=td|�d|����zt
|d��}|��}Wd�n1sRwYWntycd}YnwWzt�
|�W|StywY|Swzt�
|�Wwty�Yww)	Nzunsupported command: zcheck_output.tmp� z >zCommand z returned non-zero exit status �rb�)�NotImplementedError�reprr.�
ValueErrorr(r+r'r�systemr�open�read�FileNotFoundError�unlink�OSError)r�kwargsZtmp_filenamerZexitcode�fp�stdoutr
r
r�check_outputBsH




�
��������r>)�__doc__rrr.r>r
r
r
r�<module>s


?>