403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/pip/_internal/utils/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/pip/_internal/utils/__pycache__/subprocess.cpython-39.pyc
a

X��e�#�@sxddlZddlZddlZddlZddlmZmZmZmZm	Z	m
Z
mZmZddl
mZddlmZmZddlmZddlmZmZddlmZer�ddlmZe	eeefZeeeefed	�d
d�Zee	eefed	�dd
�Zee	eefe	ed	�dd�Zdee	eefeeedeee ee
eefeeeeeeeeeeed�dd�Z!eedd�dd�Z"dS)�N)�
TYPE_CHECKING�Any�Callable�Iterable�List�Mapping�Optional�Union)�escape)�SpinnerInterface�open_spinner)�InstallationSubprocessError)�VERBOSE�subprocess_logger)�
HiddenText)�Literal)�args�returncGs2g}|D]$}t|t�r"|�|�q|�|�q|S)z&
    Create a CommandArgs object.
    )�
isinstance�list�extend�append)rZcommand_args�arg�r�B/usr/lib/python3.9/site-packages/pip/_internal/utils/subprocess.py�make_command s
rcCsd�dd�|D��S)z/
    Format command arguments for display.
    � css0|](}t|t�rt�t|��nt�|�VqdS)N)rr�shlex�quote�str��.0rrrr�	<genexpr>:s�z&format_command_args.<locals>.<genexpr>)�join�rrrr�format_command_args1s	
�r%cCsdd�|D�S)z=
    Return the arguments in their raw, unredacted form.
    cSs g|]}t|t�r|jn|�qSr)rrZsecretr rrr�
<listcomp>D�z'reveal_command_args.<locals>.<listcomp>rr$rrr�reveal_command_args@sr(F�raiseTz"Literal["raise", "warn", "ignore"])�cmd�show_stdout�cwd�
on_returncode�extra_ok_returncodes�
extra_environ�
unset_environ�spinner�log_failed_cmd�stdout_only�command_descrc

Cs�|durg}|durg}|r*tj}tj}n
tj}t}t��|k}
|
oL|du}|d|
�tj�	�}|rp|�
|�|D]}|�|d�qtz0tj
t|�tjtj|	s�tjntj||dd�}Wn8ty�}z |r�t�d||
��WYd}~n
d}~00g}|	�s�|j�sJ�|j�sJ�|j��|j��}|�s0�qj|��}|�|d�||�|�r|�s^J�|���qz|��W|j�r�|j��n|j�r�|j��0d�|�}nT|��\}}|��D]}||��q�|�|�|��D]}||��q�|�|�|}|j�o|j|v}|�r<|�s J�|�r2|�d�n
|�d	�|�r�|d
k�r�t |
|j|
�s^|ndd�}|�r�tj!d|d
did�tjdt"t#|��ddid�tjdt"|�p�d�ddid�|�n8|dk�r�t�$d|
|j|�n|dk�r�nt%d|����|S)a�
    Args:
      show_stdout: if true, use INFO to log the subprocess's stderr and
        stdout streams.  Otherwise, use DEBUG.  Defaults to False.
      extra_ok_returncodes: an iterable of integer return codes that are
        acceptable, in addition to 0. Defaults to None, which means [].
      unset_environ: an iterable of environment variable names to unset
        prior to calling subprocess.Popen().
      log_failed_cmd: if false, failed commands are not logged, only raised.
      stdout_only: if true, return only stdout, else return both. When true,
        logging of both stdout and stderr occurs when the subprocess has
        terminated, else logging occurs as subprocess output is produced.
    NzRunning command %s�backslashreplace)�stdin�stdout�stderrr,�env�errorsz#Error %s while executing command %s�
��errorZdoner))Zcommand_descriptionZ	exit_codeZoutput_linesz%sZrichT)Zextraz*[bold magenta]full command[/]: [blue]%s[/]Zmarkupz[bold magenta]cwd[/]: %sz	[inherit]�warnz$Command "%s" had error code %s in %s�ignorezInvalid value: on_returncode=)&r�info�logging�INFO�verboserZgetEffectiveLevel�os�environ�copy�update�pop�
subprocess�Popenr(�PIPEZSTDOUT�	ExceptionZcriticalr7r6�close�readline�rstriprZspin�waitr#Zcommunicate�
splitlines�
returncodeZfinishr
r=r
r%Zwarning�
ValueError)r*r+r,r-r.r/r0r1r2r3r4Zlog_subprocessZ
used_levelZshowing_subprocessZuse_spinnerr9�name�proc�excZ
all_output�line�output�out�errZout_lineZerr_lineZproc_had_errorr=rrr�call_subprocessGs�


�

�



�




�
��
�
r[).N)�messagercs2dttttttttfdd��fdd�
}|S)z�Provide a subprocess_runner that shows a spinner message.

    Intended for use with for BuildBackendHookCaller. Thus, the runner has
    an API that matches what's expected by BuildBackendHookCaller.subprocess_runner.
    N)r*r,r/rcs>t���"}t|�|||d�Wd�n1s00YdS)N)r4r,r/r1)rr[)r*r,r/r1�r\rr�runner�s
�z+runner_with_spinner_message.<locals>.runner)NN)rrrrr)r\r^rr]r�runner_with_spinner_message�s	��r_)	FNr)NNNNTF)#rArDrrI�typingrrrrrrrr	Zpip._vendor.rich.markupr
Zpip._internal.cli.spinnersrrZpip._internal.exceptionsr
Zpip._internal.utils.loggingrrZpip._internal.utils.miscrrrZCommandArgsrr%r(�bool�intr[r_rrrr�<module>sP( 	�

�)

Youez - 2016 - github.com/yon3zu
LinuXploit