File manager - Edit - /opt/cloudlinux/venv/lib/python3.11/site-packages/pip/_internal/utils/__pycache__/subprocess.cpython-311.pyc
Back
� .|oi# � � � d dl mZ d dlZd dlZd dlZd dlZd dlmZmZ d dl m Z mZmZm Z d dlmZ d dlmZmZ d dlmZ d dlmZmZ d d lmZ ee eef Zd.d�Zd/d�Zd0d�Z d1d2d*�Z d3d-�Z!dS )4� )�annotationsN)�Iterable�Mapping)�Any�Callable�Literal�Union)�escape)�SpinnerInterface�open_spinner)�InstallationSubprocessError)�VERBOSE�subprocess_logger)� HiddenText�args�str | HiddenText | CommandArgs�return�CommandArgsc � � g }| D ]B}t |t � � r|� |� � �-|� |� � �C|S )z& Create a CommandArgs object. )� isinstance�list�extend�append)r �command_args�args �p/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_internal/utils/subprocess.py�make_commandr sb � � !#�L�� %� %�� �c�4� � � %�����$�$�$�$� ����$�$�$�$��� �list[str] | CommandArgs�strc �@ � d� d� | D � � � � S )z/ Format command arguments for display. � c 3 � K � | ]N}t |t � � r!t j t |� � � � nt j |� � V � �Od S )N)r r �shlex�quoter ��.0r s r � <genexpr>z&format_command_args.<locals>.<genexpr>. sd � � � � � �� ",�C��!<�!<�R���C��H�H����%�+�c�BR�BR�� � � � � r )�join�r s r �format_command_argsr+ % s6 � � �8�8� � ��� � � � � r � list[str]c � � d� | D � � S )z= Return the arguments in their raw, unredacted form. c �J � g | ] }t |t � � r|j n|��!S � )r r �secretr&