Current File : //usr/lib/python3/dist-packages/pip/_internal/utils/__pycache__/subprocess.cpython-312.pyc |
�
/�g�# � �� � d dl Z d dlZd dlZd dlZd dlmZmZmZmZm Z m
Z
mZmZ d dl
mZ d dlmZmZ d dlmZ d dlmZmZ d dlmZ erd dlmZ e eeef Zd eeeef d
efd�Zd ee e ef d
efd�Zd ee e ef d
e e fd
�Z ddee e ef dedee dddeee dee
eef deee dee dee dee ded
efd�Z!ded
ed fd�Z"y)� N)�
TYPE_CHECKING�Any�Callable�Iterable�List�Mapping�Optional�Union)�escape)�SpinnerInterface�open_spinner)�InstallationSubprocessError)�VERBOSE�subprocess_logger)�
HiddenText)�Literal�args�returnc �~ � g }| D ]5 }t |t � r|j |� �%|j |� �7 |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 sJ � � !#�L�� %�� �c�4� �����$�
����$�%� �� c �2 � dj d� | D � � S )z/
Format command arguments for display.
� c 3 � K � | ]G }t |t � rt j t |� � nt j |� �� �I y �w)N)r r �shlex�quote�str)�.0r s r � <genexpr>z&format_command_args.<locals>.<genexpr>: s<