� ��^ia3 � �� � d Z ddlZddlZddlZddlZddlmZmZmZm Z m Z mZmZ ddl mZmZ ddlmZ ddlmZ ddlmZ ddlmZmZ ej Z e d e� � Zerd ndZdZ ed dddd�� � Zej ej ej! ej" ej# fZ$ej ej ej! fZ% ee&� � Z'dedefd�Z(dede e fd�Z)deee e f fd�Z* G 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 � 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 � � | � � � � dd� � } | � d� � r | dd� } | S )zAMake a name consistent regardless of source (environment or file)�_�-z--� N)�lower�replace� startswith)r s ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/configuration.py�_normalize_namer' 2 sE � ��:�:�<�<����S�)�)�D����t��� ��A�B�B�x���K� c �~ � d| vr$d� | � � }t |� � �| � dd� � S )N�.zbKey does not contain dot separated section and key. Perhaps you wanted to use 'global.{}' instead?� )�formatr �split)r � error_messages r&