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.6/site-packages/pip/_internal/utils/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.6/site-packages/pip/_internal/utils/__pycache__/subprocess.cpython-36.pyc
3

�N�aJ'�@s�ddlZddlZddlZddlZddlmZmZmZmZm	Z	m
Z
mZmZddl
mZmZddlmZddlmZmZddlmZer�ddlmZe	eeefZdZeeeefed	�d
d�Zee	eefed	�dd
�Zee	eefe	ed	�dd�Zee	eefeee	eeed�dd�Zdee	eefe eedeeeeeee
eefeeeeeee ee ed�dd�Z!eedd�dd�Z"dS) �N)�
TYPE_CHECKING�Any�Callable�Iterable�List�Mapping�Optional�Union)�SpinnerInterface�open_spinner)�InstallationSubprocessError)�VERBOSE�subprocess_logger)�
HiddenText)�Literalz(----------------------------------------)�args�returncGs6g}x,|D]$}t|t�r$|j|�q
|j|�q
W|S)z&
    Create a CommandArgs object.
    )�
isinstance�list�extend�append)rZcommand_args�arg�r� /usr/lib/python3.6/subprocess.py�make_command!s

rcCsdjdd�|D��S)z/
    Format command arguments for display.
    � css0|](}t|t�rtjt|��ntj|�VqdS)N)rr�shlexZquote�str)�.0rrrr�	<genexpr><sz&format_command_args.<locals>.<genexpr>)�join)rrrr�format_command_args2s	r!cCsdd�|D�S)z=
    Return the arguments in their raw, unredacted form.
    cSs g|]}t|t�r|jn|�qSr)rrZsecret)rrrrr�
<listcomp>Esz'reveal_command_args.<locals>.<listcomp>r)rrrr�reveal_command_argsAsr#)�cmd_args�cwd�lines�exit_statusrcCs0t|�}dj|�}dj|||t|�|td�}|S)z�
    Create and return the error message to use to log a subprocess error
    with command output.

    :param lines: A list of lines, each ending with a newline.
    �z�Command errored out with exit status {exit_status}:
 command: {command_display}
     cwd: {cwd_display}
Complete output ({line_count} lines):
{output}{divider})r'Zcommand_displayZcwd_displayZ
line_count�outputZdivider)r!r �format�len�LOG_DIVIDER)r$r%r&r'Zcommandr)�msgrrr�make_subprocess_output_errorHs
r.F�raiseTz"Literal["raise", "warn", "ignore"])�cmd�show_stdoutr%�
on_returncode�extra_ok_returncodes�command_desc�
extra_environ�
unset_environ�spinner�log_failed_cmd�stdout_onlyrcCs�|dkrg}|dkrg}|r*tj}tj}n
tj}t}tj�|k}
|
oL|dk	}|dkr^t|�}|d|�tj	j
�}|r�|j|�x|D]}|j|d�q�Wy0t
jt|�t
jt
j|
s�t
jnt
j||dd�}Wn8tk
�r}z|	r�tjd||��WYdd}~XnXg}|
�s�|j�st�|j�s&t�|jj�xN|jj�}|�sDP|j�}|j|d�||�|�r2|�srt�|j��q2Wz|j�Wd|j�r�|jj�Xdj|�}n\|j�\}}x|j�D]}||��q�W|j|�x|j�D]}||��q�W|j|�|}|j �o|j |k}|�rH|�s,t�|�r>|j!d�n
|j!d	�|�r�|d
k�r�|
�r�|	�r�t"||||j d�}tj#|�t$|j |��n8|dk�r�tj%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�
r(�error�doner/)r$r%r&r'�warnz$Command "%s" had error code %s in %s�ignorezInvalid value: on_returncode=)'r�info�logging�INFO�verboser
ZgetEffectiveLevelr!�os�environ�copy�update�pop�
subprocess�Popenr#�PIPEZSTDOUT�	ExceptionZcriticalr<�AssertionErrorr;�close�readline�rstriprZspin�waitr Zcommunicate�
splitlines�
returncodeZfinishr.rArZwarning�
ValueError)r0r1r%r2r3r4r5r6r7r8r9Zlog_subprocessZ
used_levelZshowing_subprocessZuse_spinnerr>�name�proc�excZ
all_output�liner)�out�errZout_lineZerr_lineZproc_had_errorr-rrr�call_subprocessks�















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

    Intended for use with for pep517's Pep517HookCaller. Thus, the runner has
    an API that matches what's expected by Pep517HookCaller.subprocess_runner.
    N)r0r%r5rc
s(t���}t||||d�WdQRXdS)N)r%r5r7)rr`)r0r%r5r7)rarr�runners
z+runner_with_spinner_message.<locals>.runner)NN)rrrrr)rarbr)rar�runner_with_spinner_message
s		rc)
FNr/NNNNNTF).N)#rFrIrrNZtypingrrrrrrrr	Zpip._internal.cli.spinnersr
rZpip._internal.exceptionsrZpip._internal.utils.loggingr
rZpip._internal.utils.miscrrrZCommandArgsr,rr!r#�intr.�boolr`rcrrrr�<module>sB(  T

Youez - 2016 - github.com/yon3zu
LinuXploit