관리-도구
편집 파일: exceptions.cpython-38.opt-1.pyc
U ��.e( � @ s� d Z ddlmZ ddlmZmZmZ ddlmZ ddl m Z e rdddlmZ ddl mZ ddlmZ G d d � d e�ZG dd� de�ZG d d� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d!d"� d"e�ZG d#d$� d$e�ZG 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/d0� d0e �Z%G d1d2� d2e�Z&G d3d4� d4e�Z'd5S )6z"Exceptions used throughout package� )�absolute_import)�chain�groupby�repeat)� iteritems)�MYPY_CHECK_RUNNING)�Optional)�Distribution)�InstallRequirementc @ s e Zd ZdZdS )�PipErrorzBase pip exceptionN��__name__� __module__�__qualname__�__doc__� r r �</usr/lib/python3.8/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 @ s e Zd ZdZdd� Zdd� 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"). c 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)�dist� metadata_name)�selfr r r r r �__init__- s zNoneMetadataError.__init__c C s d� | j| j�S )Nz+None {} metadata found for distribution: {})�formatr r �r r r r �__str__7 s ��zNoneMetadataError.__str__N)r r r r r r r r r r r $ s r c @ s e Zd ZdZdS )�DistributionNotFoundzCRaised when a distribution cannot be found to satisfy a requirementNr r r r r r B s r c @ s e Zd ZdZdS )�RequirementsFileParseErrorzDRaised when a general error occurs parsing a requirements file line.Nr r r r r r F s r c @ s e Zd ZdZdS )�BestVersionAlreadyInstalledzNRaised when the most up-to-date version of a package is already installed.Nr r r r r r J s r c @ s e Zd ZdZdS )� BadCommandz0Raised when virtualenv or a command is not foundNr r r r r r! O s r! c @ s e Zd ZdZdS )�CommandErrorz7Raised when there is an error in command-line argumentsNr r r r r r"