File: //opt/osm/venv/lib/python3.10/site-packages/pip/_internal/__pycache__/configuration.cpython-310.pyc
o
5i�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�} | S )zAMake a name consistent regardless of source (environment or file)�_�-z--)�lower�replace�removeprefix)r � r! �I/opt/osm/venv/lib/python3.10/site-packages/pip/_internal/configuration.py�_normalize_name5 s
r# � list[str]c C s( d| vrd| � d�}t |��| �dd�S )N�.zVKey does not contain dot separated section and key. Perhaps you wanted to use 'global.z
' instead?� )r �split)r �
error_messager! r! r"