관리-도구
편집 파일: exceptions.cpython-39.pyc
a ��Re�1 � @ s4 d Z ddlZddlmZmZmZ ddlmZmZm Z m Z mZ ddlm Z ddlmZmZ er�ddlmZ ddlmZ dd lmZ G d d� de�ZG dd � d e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Z G dd� de�Z!G dd� de�Z"G d d!� d!e�Z#G d"d#� d#e�Z$G d$d%� d%e�Z%G d&d'� d'e�Z&G d(d)� d)e�Z'G d*d+� d+e�Z(G d,d-� d-e�Z)G d.d/� d/e�Z*G d0d1� d1e�Z+G d2d3� d3e+�Z,G d4d5� d5e+�Z-G d6d7� d7e+�Z.G d8d9� d9e+�Z/G d:d;� d;e+�Z0G d<d=� d=e�Z1G d>d?� d?e�Z2dS )@z"Exceptions used throughout package� N)�chain�groupby�repeat)� TYPE_CHECKING�Dict�List�Optional�Union)�Distribution)�Request�Response)�_Hash)�BaseDistribution)�InstallRequirementc @ s e Zd ZdZdS )�PipErrorzBase pip exceptionN��__name__� __module__�__qualname__�__doc__� r r ��/builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_internal/exceptions.pyr s r c @ s e Zd ZdZdS )�ConfigurationErrorz"General exception in configurationNr r r r r r s r c @ s e Zd ZdZdS )�InstallationErrorz%General exception during installationNr r r r r r s r c @ s e Zd ZdZdS )�UninstallationErrorz'General exception during uninstallationNr r r r r r s r c @ s8 e Zd ZdZeedf edd�dd�Zed�dd �ZdS ) �NoneMetadataErrora Raised when accessing "METADATA" or "PKG-INFO" metadata for a pip._vendor.pkg_resources.Distribution object and `dist.has_metadata('METADATA')` returns True but `dist.get_metadata('METADATA')` returns None (and similarly for "PKG-INFO"). r N)�dist� metadata_name�returnc C s || _ || _dS )z� :param dist: A Distribution object. :param metadata_name: The name of the metadata being accessed (can be "METADATA" or "PKG-INFO"). N)r r )�selfr r r r r �__init__* s zNoneMetadataError.__init__�r c C s d� | j| j�S )Nz+None {} metadata found for distribution: {})�formatr r �r r r r �__str__7 s �zNoneMetadataError.__str__) r r r r r r �strr r$ r r r r r ! s � r c @ s e Zd ZdZed�dd�ZdS )�UserInstallationInvalidzBA --user install is requested on an environment without user site.r! c C s dS )Nz$User base directory is not specifiedr r# r r r r$ C s zUserInstallationInvalid.__str__N)r r r r r% r$ r r r r r&