File: //usr/local/lib/python3.10/dist-packages/pip/_internal/__pycache__/configuration.cpython-310.pyc
o
��h�8 � @ s" d Z ddlmZ ddlZddlZddlZddlZddlmZ ddl m
Z
mZ ddlm
Z
mZ ddlmZ ddlmZ dd lmZ dd
lmZmZ ejZede�ZerTdnd
ZdZedddddd�Zejejej ej!ej"fZ#ejejej fZ$ee%�Z&d"dd�Z'd#dd�Z(d$dd�Z)G d d!� d!�Z*dS )%a Configuration management setup
Some terminology:
- name
As written in config files.
- value
Value associated with a name
- key
Name combined with it's section (section.name)
- variant
A single word describing where the configuration key-value pair came from
� )�annotationsN)�Iterable)�Any�NewType)�ConfigurationError�!ConfigurationFileCouldNotBeLoaded)�appdirs)�WINDOWS)� getLogger)�
ensure_dir�enum�Kindzpip.inizpip.conf)�version�help�user�global�site�envzenv-var)�USER�GLOBAL�SITE�ENV�ENV_VAR�name�str�returnc C s* | � � �dd�} | �d�r| dd� } | S )zAMake a name consistent regardless of source (environment or file)�_�-z--� N)�lower�replace�
startswith)r � r"