관리-도구
편집 파일: exceptions.cpython-311.pyc
� �܋fc � �( � d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z m Z mZ ddlm Z mZmZmZmZmZmZ ddlmZmZmZ ddlmZ ddlmZ e rddlmZ dd lmZm Z dd l!m"Z" ddl#m$Z$ ej% e&� � Z'de(d e)fd�Z*deee(f dede(de(d ef d�Z+ G d� de,� � Z- G d� de-� � Z. G d� de-� � Z/ G d� de-� � Z0 G d� de.� � Z1 G d� de.� � Z2 G d� d e-� � Z3 G d!� d"e0� � Z4 G d#� d$e0� � Z5 G d%� d&e0� � Z6 G d'� d(e0� � Z7 G d)� d*e-� � Z8 G d+� d,e-� � Z9 G d-� d.e-� � Z: G d/� d0e-� � Z; G d1� d2e-� � Z< G d3� d4e0� � Z= G d5� d6e0� � Z> G d7� d8e0� � Z? G d9� d:e0� � Z@ G d;� d<e0� � ZA G d=� d>e.e0� � ZB G d?� d@eBe0� � ZC G dA� dBe0� � ZD G dC� dDe0� � ZE G dE� dFeE� � ZF G dG� dHeE� � ZG G dI� dJeE� � ZH G dK� dLeE� � ZI G dM� dNeE� � ZJ G dO� dPe0� � ZK G dQ� dRe/� � ZLdSejM � dT�ZN G dU� dVe.� � ZO G dW� dXe.� � ZP G dY� dZe.� � ZQdS )[z�Exceptions used throughout package. This module MUST NOT try to import from anything within `pip._internal` to operate. This is expected to be importable from any/all files within the subpackage and, thus, should not depend on them. � N)�chain�groupby�repeat)� TYPE_CHECKING�Dict�Iterator�List�Literal�Optional�Union)�Console�ConsoleOptions�RenderResult)�escape)�Text)�_Hash)�Request�Response)�BaseDistribution)�InstallRequirement�s�returnc �0 � t j d| � � d uS )Nz^[a-z]+(-[a-z]+)*$)�re�match)r s �O/opt/cloudlinux/venv/lib64/python3.11/site-packages/pip/_internal/exceptions.py�_is_kebab_caser $ s � � �8�)�1�-�-�T�9�9� �console�prefix�indentc � � t | t � � r| }n|� | � � }|� |d�� � |� d|� �d�� � � |� d�� � � � z S )N�ignore)�overflow� T)�allow_blank)� isinstancer � render_str�join�split)r r r r! �texts r �_prefix_with_indentr, ( s� � � �!�T��� %�����!�!�!�$�$�����f�x��8�8�7�;M�;M��V� � �� <N� <� <� �d�4�:�:�$�:�'�'�(�(�)� )r c � � e Zd ZdZdS )�PipErrorzThe base pip error.N��__name__� __module__�__qualname__�__doc__� r r r. r. 9 s � � � � � ����r r. c � � � e Zd ZU dZeed<