/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/utils/__pycache__
� ��A���� � � d dl Z d dlZd dlZd dlZd dlmZmZmZmZm Z m Z mZmZ d dl mZmZ d dlmZ d dlmZmZ d dlmZ erd dlmZ e eeef ZdZd eeeef d efd�Zd ee e ef d efd�Zd ee e ef d e e fd �Zdee e ef dee de e ded ef d�Z d%dee e ef de dee dddeee dee dee eef deee dee dee d ee d efd!�Z!d"ed ed# fd$�Z"dS )&� N)� TYPE_CHECKING�Any�Callable�Iterable�List�Mapping�Optional�Union)�SpinnerInterface�open_spinner)�InstallationSubprocessError)�VERBOSE�subprocess_logger)� HiddenText)�Literalz(----------------------------------------�args�returnc � � g }| D ]B}t |t � � r|� |� � �-|� |� � �C|S )z& Create a CommandArgs object. )� isinstance�list�extend�append)r �command_args�args ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el9.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/utils/subprocess.py�make_commandr ! sb � � !#�L�� %� %�� �c�4� � � %�����$�$�$�$� ����$�$�$�$��� c �@ � 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�quote�str��.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) 2 s6 � � �8�8� � ��� � � � � r 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$ s r � <listcomp>z'reveal_command_args.<locals>.<listcomp>E s- � �O�O�O�3�*�S�*�5�5�>�C�J�J�3�O�O�Or r, r( s r �reveal_command_argsr/ A s � � P�O�$�O�O�O�Or �cmd_args�cwd�lines�exit_statusc � � t | � � }d� |� � }d� |||t |� � |t �� � }|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})r3 �command_display�cwd_display� line_count�output�divider)r) r'