403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/pip/_internal/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/pip/_internal/utils/__pycache__/subprocess.cpython-311.pyc
�

�/�c�#��H�ddlZddlZddlZddlZddlmZmZmZmZm	Z	m
Z
mZmZddl
mZddlmZmZddlmZddlmZmZddlmZerddlmZe	eeefZd	eeeefd
efd�Zd	ee	eefd
efd�Zd	ee	eefd
e	efd
�Z									d!dee	eefdedeedddeee dee
eefdeeedeedeedeeded
efd�Z!ded
edfd �Z"dS)"�N)�
TYPE_CHECKING�Any�Callable�Iterable�List�Mapping�Optional�Union)�escape)�SpinnerInterface�open_spinner)�InstallationSubprocessError)�VERBOSE�subprocess_logger)�
HiddenText)�Literal�args�returnc��g}|D]B}t|t��r|�|���-|�|���C|S)z&
    Create a CommandArgs object.
    )�
isinstance�list�extend�append)r�command_args�args   �@/usr/lib/python3/dist-packages/pip/_internal/utils/subprocess.py�make_commandr sb��!#�L��%�%���c�4� � �	%�����$�$�$�$�
����$�$�$�$���c�@�d�d�|D����S)z/
    Format command arguments for display.
    � c3�K�|]N}t|t��r!tjt	|����ntj|��V��OdS)N)rr�shlex�quote�str��.0rs  r�	<genexpr>z&format_command_args.<locals>.<genexpr>:sd�������",�C��!<�!<�R���C��H�H����%�+�c�BR�BR������r)�join�rs r�format_command_argsr*1s6���8�8���������rc��d�|D��S)z=
    Return the arguments in their raw, unredacted form.
    c�J�g|] }t|t��r|jn|��!S�)rr�secretr%s  r�
<listcomp>z'reveal_command_args.<locals>.<listcomp>Ds-��O�O�O�3�*�S�*�5�5�>�C�J�J�3�O�O�Orr-r)s r�reveal_command_argsr0@s��P�O�$�O�O�O�OrF�raiseT�cmd�show_stdout�cwd�
on_returncodez"Literal["raise", "warn", "ignore"]�extra_ok_returncodes�
extra_environ�
unset_environ�spinner�log_failed_cmd�stdout_only�command_descc
	���|�g}|�g}|rtj}tj}ntj}t
}tj��|k}
|
o|du}|d|
��tj�	��}|r|�
|��|D]}|�|d���	tj
t|��tjtj|	stjntj||d���}n+#t"$r}|rtjd||
���d}~wwxYwg}|	�s|jsJ�|jsJ�|j���	|j���}|snR|���}|�|dz��||��|r|sJ�|����n	|���|jr|j���n&#|jr|j���wwxYwd�|��}n�|���\}}|���D]
}||���|�|��|���D]
}||���|�|��|}|jo|j|v}|r1|sJ�|r|�d	��n|�d
��|r�|dkr�tA|
|j|
s|nd���}|rptj!d
|��tjdtEtG|����ddi���tjdtE|pd��ddi���|�|dkrtj$d|
|j|��n|dkrntKd|�����|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�stderrr4�env�errorsz#Error %s while executing command %sT�
��error�doner1)�command_description�	exit_code�output_linesz[present-rich] %sz*[bold magenta]full command[/]: [blue]%s[/]�markup)�extraz[bold magenta]cwd[/]: %sz	[inherit]�warnz$Command "%s" had error code %s in %s�ignorezInvalid value: on_returncode=)&r�info�logging�INFO�verboser�getEffectiveLevel�os�environ�copy�update�pop�
subprocess�Popenr0�PIPE�STDOUT�	Exception�criticalr@r?�close�readline�rstripr�spin�waitr(�communicate�
splitlines�
returncode�finishrrFrr*�warning�
ValueError)r2r3r4r5r6r7r8r9r:r;r<�log_subprocess�
used_level�showing_subprocess�use_spinnerrB�name�proc�exc�
all_output�line�output�out�err�out_line�err_line�proc_had_errorrFs                            r�call_subprocessryGs���6�#�!�����
� ��.?�.D���\�
�
�+�2���
�+�<�>�>�*�L��)�(�@�W�D�-@�K��N�'��6�6�6�
�*�/�/�
�
�C��"��
�
�=�!�!�!���������d����������$�$��/��?�,7�L�:�$�$�Z�_���%�	
�	
�	
���������	��&�5���
�
�
�
	����������J��#��{�����z�����
������	���,�,�.�.�D��
���;�;�=�=�D����d�T�k�*�*�*�
�N�4� � � ��
�����������	�	$��I�I�K�K�K��{�
$���!�!�#�#�#����{�
$���!�!�#�#�#�#�
$��������$�$����#�#�%�%���S����(�(�	%�	%�H��N�8�$�$�$�$����#�������(�(�	%�	%�H��N�8�$�$�$�$����#�������_�T���@T�)T�N��#������	#��N�N�7�#�#�#�#��N�N�6�"�"�"��P��G�#�#�/�$0��/�/A�K�Z�Z�t����E�
�
�!�'�(;�U�C�C�C�!�)�@��.�s�3�3�4�4�#�T�*�����
"�)�.��3�-�+�.�.�#�T�*������K�
�f�
$�
$��%�6�����	
�
�
�
��h�
&�
&���N�]�N�N�O�O�O��Ms%�2AD�
D/�D*�*D/�H�#H*�message).Nc
���		ddttdttdttttfddf�fd�
}|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.
    Nr2r4r7rc���t���5}t|�|||���ddd��dS#1swxYwYdS)N)r<r4r7r9)r
ry)r2r4r7r9rzs    �r�runnerz+runner_with_spinner_message.<locals>.runner�s����
�'�
"�
"�	�g���$��+��
�
�
�
�	�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	�	s�3�7�7)NN)rr$r	rr)rzr}s` r�runner_with_spinner_messager~�so���"�59���
�#�Y��
�c�]�� ���S�� 1�2��
�	�������Mr)	FNr1NNNNTF)#rPrTr"rY�typingrrrrrrr	r
�pip._vendor.rich.markupr�pip._internal.cli.spinnersrr
�pip._internal.exceptionsr�pip._internal.utils.loggingrr�pip._internal.utils.miscrrr$�CommandArgsrr*r0�bool�intryr~r-rr�<module>r�s�������	�	�	�	���������	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�+�*�*�*�*�*�E�E�E�E�E�E�E�E�@�@�@�@�@�@�B�B�B�B�B�B�B�B�/�/�/�/�/�/����������5��j��)�*����c�:�{�:�;�������"�e�D��I�{�$:�;�������P�e�D��I�{�$:�;�P��S�	�P�P�P�P���:A�48�15�-1�*.�%)�"'�e�e�	�t�C�y�+�%�	&�e��e�
�#��e�8�	e�
#�8�C�=�1�e��G�C��H�-�.�
e��H�S�M�*�e��&�
'�e��T�N�e��$��e��e�	�e�e�e�e�P����)�1D������r

Youez - 2016 - github.com/yon3zu
LinuXploit