File: //usr/lib/python3/dist-packages/pip/_internal/__pycache__/configuration.cpython-310.pyc
o
@%Nes3 � @ sB d Z ddlZddlZddlZddlZddlmZmZmZm Z m
Z
mZmZ ddl
mZmZ ddlmZ ddlmZ ddlmZ ddlmZmZ ejZe
d e�ZerRd
ndZdZed
ddddd�Zejej ej!ej"ej#fZ$ej ejej!fZ%ee&�Z'dedefdd�Z(dede e fdd�Z)deee e f fdd�Z*G dd� 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
� N)�Any�Dict�Iterable�List�NewType�Optional�Tuple)�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�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$ �=/usr/lib/python3/dist-packages/pip/_internal/configuration.py�_normalize_name2 s
r&