__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

aptanhua@216.73.217.122: ~ $
U

��.e:�@s�ddlZddlZddlZddlmZddlmZmZddlm	Z	m
Z
mZddlm
Z
ddlmZmZe�e�ZGdd�de�ZdS)	�N)�Command)�ERROR�SUCCESS)�
Configuration�get_configuration_files�kinds)�PipError)�get_prog�write_outputcsxeZdZdZdZdZ�fdd�Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Z�ZS)�ConfigurationCommanda9Manage 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

        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.
    Tz�
        %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
    cs�tt|�j||�d|_|jjdddddd�|jjdddd	d
d�|jjdddd	d
d�|jjdddd	dd�|j�d|j�dS)Nz--editor�editorZstorez\Editor to use to edit the file. Uses VISUAL or EDITOR environment variables if not provided.)�dest�action�default�helpz--global�global_file�
store_trueFz+Use the system-wide configuration file onlyz--user�	user_filez$Use the user configuration file onlyz--site�	site_filez3Use the current environment configuration file onlyr)�superr�__init__�
configurationZcmd_optsZ
add_option�parserZinsert_option_group)�self�args�kwargs��	__class__��H/usr/lib/python3.8/site-packages/pip/_internal/commands/configuration.pyr0s>����zConfigurationCommand.__init__c
Cs|j|j|j|j|jd�}|r*|d|krHt�d�d�t	|����t
S|d}z|j||dkd�}Wn:tk
r�}zt�|j
d�t
WY�Sd}~XYnXt|j|d�|_|j��z||||dd��Wn<tk
�r}zt�|j
d�t
WY�Sd}~XYnXtS)	N)�list�edit�get�set�unsetrzNeed an action ({}) to perform.z, )r"r#r$r!)�
need_value)�isolated�	load_only�)�list_values�open_in_editor�get_name�set_name_value�
unset_name�logger�error�format�join�sortedr�_determine_filerrrZ
isolated_moder�loadr)r�optionsrZhandlersrr'�errr�runZs>�	��
�
zConfigurationCommand.runcCs�dd�tj|jftj|jftj|jffD�}|s`|s8dStdd�t�tjD��rXtjStjSnt	|�dkrt|dSt
d��dS)NcSsg|]\}}|r|�qSrr)�.0�key�valuerrr�
<listcomp>�s�z8ConfigurationCommand._determine_file.<locals>.<listcomp>css|]}tj�|�VqdS)N)�os�path�exists)r8Zsite_config_filerrr�	<genexpr>�s�z7ConfigurationCommand._determine_file.<locals>.<genexpr>r(rzLNeed exactly one file to operate upon (--user, --site, --global) to perform.)rZUSERrZGLOBALrZSITEr�anyr�lenr)rr5r%Zfile_optionsrrrr3�s$


�
��z$ConfigurationCommand._determine_filecCs8|j|ddd�t|j���D]\}}td||�qdS)Nr r��nz%s=%r)�_get_n_argsr2r�itemsr
�rr5rr9r:rrrr)�sz ConfigurationCommand.list_valuescCs*|j|ddd�}|j�|�}td|�dS)Nz
get [name]r(rBz%s)rDrZ	get_valuer
rFrrrr+�szConfigurationCommand.get_namecCs.|j|ddd�\}}|j�||�|��dS)Nzset [name] [value]�rB)rDrZ	set_value�_save_configurationrFrrrr,�sz#ConfigurationCommand.set_name_valuecCs(|j|ddd�}|j�|�|��dS)Nzunset [name]r(rB)rDrZunset_valuerH)rr5rr9rrrr-�szConfigurationCommand.unset_namec
Csp|�|�}|j��}|dkr$td��zt�||g�Wn4tjk
rj}ztd�|j���W5d}~XYnXdS)Nz%Could not determine appropriate file.z*Editor Subprocess exited with exit code {})	�_determine_editorrZget_file_to_editr�
subprocessZ
check_callZCalledProcessErrorr0�
returncode)rr5rrZfnamer6rrrr*�s

��z#ConfigurationCommand.open_in_editorcCs<t|�|kr$d�|t�|�}t|��|dkr4|dS|SdS)zJHelper to make sure the command got the right number of arguments
        zJGot unexpected number of arguments, expected {}. (example: "{} config {}")r(rN)rAr0r	r)rrZexamplerC�msgrrrrD�s��z ConfigurationCommand._get_n_argscCs>z|j��Wn*tk
r8tjddd�td��YnXdS)Nz:Unable to save configuration. Please report this as a bug.r()�exc_infozInternal Error.)rZsave�	Exceptionr.r/r)rrrrrH�s�z(ConfigurationCommand._save_configurationcCsD|jdk	r|jSdtjkr$tjdSdtjkr8tjdStd��dS)NZVISUALZEDITORz"Could not determine editor to use.)rr<�environr)rr5rrrrI�s




z&ConfigurationCommand._determine_editor)�__name__�
__module__�__qualname__�__doc__Zignore_require_venvZusagerr7r3r)r+r,r-r*rDrHrI�
__classcell__rrrrrs	*+r)Zloggingr<rJZpip._internal.cli.base_commandrZpip._internal.cli.status_codesrrZpip._internal.configurationrrrZpip._internal.exceptionsrZpip._internal.utils.miscr	r
Z	getLoggerrPr.rrrrr�<module>s


Filemanager

Name Type Size Permission Actions
__init__.cpython-38.opt-1.pyc File 2.79 KB 0644
__init__.cpython-38.pyc File 2.79 KB 0644
check.cpython-38.opt-1.pyc File 1.28 KB 0644
check.cpython-38.pyc File 1.28 KB 0644
completion.cpython-38.opt-1.pyc File 2.94 KB 0644
completion.cpython-38.pyc File 2.94 KB 0644
configuration.cpython-38.opt-1.pyc File 6.42 KB 0644
configuration.cpython-38.pyc File 6.42 KB 0644
debug.cpython-38.opt-1.pyc File 3.2 KB 0644
debug.cpython-38.pyc File 3.2 KB 0644
download.cpython-38.opt-1.pyc File 4.2 KB 0644
download.cpython-38.pyc File 4.2 KB 0644
freeze.cpython-38.opt-1.pyc File 2.84 KB 0644
freeze.cpython-38.pyc File 2.84 KB 0644
hash.cpython-38.opt-1.pyc File 1.94 KB 0644
hash.cpython-38.pyc File 1.94 KB 0644
help.cpython-38.opt-1.pyc File 1.16 KB 0644
help.cpython-38.pyc File 1.16 KB 0644
install.cpython-38.opt-1.pyc File 14.12 KB 0644
install.cpython-38.pyc File 14.12 KB 0644
list.cpython-38.opt-1.pyc File 8.68 KB 0644
list.cpython-38.pyc File 8.72 KB 0644
search.cpython-38.opt-1.pyc File 4.38 KB 0644
search.cpython-38.pyc File 4.38 KB 0644
show.cpython-38.opt-1.pyc File 6.18 KB 0644
show.cpython-38.pyc File 6.18 KB 0644
uninstall.cpython-38.opt-1.pyc File 2.63 KB 0644
uninstall.cpython-38.pyc File 2.63 KB 0644
wheel.cpython-38.opt-1.pyc File 4.51 KB 0644
wheel.cpython-38.pyc File 4.51 KB 0644