Your IP : 3.137.171.71
�
�Rec @ s d d l Z d d l Z d d l Z d d l m Z d d l m Z m Z d d l m Z m
Z
m Z d d l m
Z
d d l m Z d d l m Z m Z d d l m Z e r� d d l m Z m Z m Z d d
l m Z d d l m Z n e j e � Z d e f d
� � YZ d S( i����N( t Command( t ERRORt SUCCESS( t
Configurationt get_configuration_filest kinds( t PipError( t
indent_log( t get_progt write_output( t MYPY_CHECK_RUNNING( t Listt Anyt Optional( t Values( t Kindt ConfigurationCommandc B s� e Z d Z e Z d Z d � Z d � Z d � Z d � Z d � Z
d � Z d � Z d � Z
d
� Z d � Z d � Z d
� Z d � Z d � Z RS( sh
Manage local and global configuration.
Subcommands:
- list: List the active configuration (or from the file specified)
- edit: Edit the configuration file in an editor
- get: Get the value associated with name
- set: Set the name=value
- unset: Unset the value associated with name
- debug: List the configuration files and values defined under them
If none of --user, --global and --site are passed, a virtual
environment configuration file is used if one is active and the file
exists. Otherwise, all modifications happen on the to the user file by
default.
s
%prog [<file-option>] list
%prog [<file-option>] [--editor <editor-path>] edit
%prog [<file-option>] get name
%prog [<file-option>] set name value
%prog [<file-option>] unset name
%prog [<file-option>] debug
c
C s� | j j d d d d d d d d d �| j j d d d
d d d t d d �| j j d
d d d d d t d d �| j j d d d d d d t d d �| j j d | j � d S( Ns --editort destt editort actiont storet defaultt helps\ Editor to use to edit the file. Uses VISUAL or EDITOR environment variables if not provided.s --globalt global_filet
store_trues+ Use the system-wide configuration file onlys --usert user_files$ Use the user configuration file onlys --sitet site_files3 Use the current environment configuration file onlyi ( t cmd_optst
add_optiont Nonet Falset parsert insert_option_group( t self( ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/configuration.pyt add_options8 s2 c C s@ i | j d 6| j d 6| j d 6| j d 6| j d 6| j d 6} | sY | d | k r| t j d d j t | � � � t
S| d } y | j | d
| d k �} Wn( t k
r� } t j | j
d � t
SXt d | j d | � | _ | j j � y | | | | d
� Wn( t k
r;} t j | j
d � t
SXt S( Nt listt editt gett sett unsett debugi s Need an action (%s) to perform.s , t
need_valuet isolatedt load_onlyi ( R% R&