ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/pip/baseparser.pyc
ó
•abc@@s1dZddlmZddlZddlZddlZddlZddlZddlm	Z	ddl
mZddlm
Z
ddlmZmZmZmZddlmZmZejd	ejƒZd
ejfd„ƒYZdefd
„ƒYZdejfd„ƒYZdefd„ƒYZdS(sBase option parser setupi(tabsolute_importN(t	strtobool(tstring_types(tconfigparser(tlegacy_config_filetconfig_basenametrunning_under_virtualenvtsite_config_files(tappdirstget_terminal_sizes^PIP_tPrettyHelpFormattercB@s\eZdZd„Zd„Zddd„Zd„Zd„Zd„Zd	„Z	d
„Z
RS(s4A prettier/less verbose help formatter for optparse.cO@sCd|d<d|d<tƒdd|d<tjj|||ŽdS(Nitmax_help_positionitindent_incrementiitwidth(R	toptparsetIndentedHelpFormattert__init__(tselftargstkwargs((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyRs

cC@s|j|ddƒS(Ns <%s>s, (t_format_option_strings(Rtoption((s2/usr/lib/python2.7/site-packages/pip/baseparser.pytformat_option_strings!ss <%s>s, cC@s¶g}|jr&|j|jdƒn|jrF|j|jdƒnt|ƒdkrk|jd|ƒn|jƒr©|jpŒ|jjƒ}|j||jƒƒndj	|ƒS(s
        Return a comma-separated list of option strings and metavars.

        :param option:  tuple of (short opt, long opt), e.g: ('-f', '--format')
        :param mvarfmt: metavar format string - evaluated as mvarfmt % metavar
        :param optsep:  separator
        iit(
t_short_optstappendt
_long_optstlentinsertttakes_valuetmetavartdesttlowertjoin(RRtmvarfmttoptseptoptsR((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyR$s		cC@s|dkrdS|dS(NtOptionsRs:
((Rtheading((s2/usr/lib/python2.7/site-packages/pip/baseparser.pytformat_heading;scC@s#d|jtj|ƒdƒ}|S(sz
        Ensure there is only one newline between usage and the first heading
        if there is no description.
        s
Usage: %s
s  (tindent_linesttextwraptdedent(Rtusagetmsg((s2/usr/lib/python2.7/site-packages/pip/baseparser.pytformat_usage@scC@sy|rqt|jdƒr!d}nd}|jdƒ}|jƒ}|jtj|ƒdƒ}d||f}|SdSdS(NtmaintCommandstDescriptions
s  s%s:
%s
R(thasattrtparsertlstriptrstripR(R)R*(Rtdescriptiontlabel((s2/usr/lib/python2.7/site-packages/pip/baseparser.pytformat_descriptionHs	cC@s|r
|SdSdS(NR((Rtepilog((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyt
format_epilogZscC@s3g|jdƒD]}||^q}dj|ƒS(Ns
(tsplitR!(Rttexttindenttlinet	new_lines((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyR(as&(t__name__t
__module__t__doc__RRRR'R-R7R9R((((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyR
s						tUpdatingDefaultsHelpFormattercB@seZdZd„ZRS(s®Custom help formatter for use in ConfigOptionParser.

    This is updates the defaults before expanding them, allowing
    them to show up correctly in the help listing.
    cC@s;|jdk	r(|jj|jjƒntjj||ƒS(N(R2tNonet_update_defaultstdefaultsRRtexpand_default(RR((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyRFms(R?R@RARF(((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyRBfstCustomOptionParsercB@s eZd„Zed„ƒZRS(cO@s6|j||Ž}|jjƒ|jj||ƒ|S(s*Insert an OptionGroup at a given position.(tadd_option_groupt
option_groupstpopR(RtidxRRtgroup((s2/usr/lib/python2.7/site-packages/pip/baseparser.pytinsert_option_groupus
cC@s2|j}x!|jD]}|j|jƒqW|S(s<Get a list of all options, including those in option groups.(toption_listRItextend(Rtresti((s2/usr/lib/python2.7/site-packages/pip/baseparser.pytoption_list_all~s
(R?R@RMtpropertyRR(((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyRGss		tConfigOptionParsercB@seeZdZeZd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd„Zd	„Z
RS(
ssCustom option parser which updates its defaults by checking the
    configuration files and environmental variablescO@stjƒ|_|jdƒ|_|jdtƒ|_|jƒ|_|jrd|jj	|jƒn|jsst
‚tjj
|||ŽdS(Ntnametisolated(RtRawConfigParsertconfigRJRUtFalseRVtget_config_filestfilestreadtAssertionErrorRtOptionParserR(RRR((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyRŽs	cC@sätjjdtƒ}|tjkr(gSttƒ}|jsš|retjj	|ƒre|j
|ƒqš|j
tƒ|j
tjjt
jdƒtƒƒntƒràtjjtjtƒ}tjj	|ƒrà|j
|ƒqàn|S(NtPIP_CONFIG_FILEtpip(tostenvirontgetRYtdevnulltlistRRVtpathtexistsRRR!Rtuser_config_dirRRtsystprefix(Rtconfig_fileR[tvenv_config_file((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyRZ˜s&	
	
			cC@sGy|j||ƒSWn,tjk
rB}d|GHtjdƒnXdS(Ns*An error occurred during configuration: %si(tcheck_valueRtOptionValueErrorRitexit(RRtkeytvaltexc((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyt
check_defaultÀs
	cC@si}x6d|jfD]%}|j|j|j|ƒƒƒqW|jsg|j|j|jƒƒƒntj|jƒ|_	t
ƒ}xG|jƒD]9\}}|sªq’n|j|ƒ}|dkrËq’n|jdkrét|ƒ}nÕ|jdkr/|jƒ}g|D]}|j|||ƒ^q}n|jdkr©|j|jƒ|jƒ}	|j|	|ƒ}|jpxd	}
|jp‡i}|j||	|||
|Žn|j|||ƒ}|||j<q’Wx$|D]}t|j	|ƒ||<qÖWd|_	|S(
s¢Updates the given defaults with values from the config files and
        the environ. Does a little special handling for certain types of
        options (lists).tglobalt
store_truetstore_falsetcountRtcallbackN(RuRvRw((RUtupdatetnormalize_keystget_config_sectionRVtget_environ_varsRtValuesREtvaluestsettitemst
get_optionRCtactionRR:RstaddRtget_opt_stringt
convert_valuet
callback_argstcallback_kwargsRxtgetattr(RRERXtsectiont	late_evalRpRqRtvtopt_strRR((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyRDÇs@		+
	cC@sYi}xL|D]D\}}|jddƒ}|jdƒsGd|}n|||<q
W|S(s™Return a config dictionary with normalized keys regardless of
        whether the keys were specified in environment variables or in config
        filest_t-s--s--%s(treplacet
startswith(RR€t
normalizedRpRq((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyRzüs
cC@s&|jj|ƒr"|jj|ƒSgS(s Get a section of a configuration(RXthas_sectionR€(RRU((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyR{scc@sSxLtjjƒD];\}}tj|ƒrtjd|ƒjƒ|fVqqWdS(s@Returns a generator with all environmental vars with prefix PIP_RN(RaRbR€t_environ_prefix_retsearchtsubR (RRpRq((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyR|scC@sž|jstj|jƒS|j|jjƒƒ}x]|jƒD]O}|j|jƒ}t	|t
ƒr>|jƒ}|j||ƒ||j<q>q>Wtj|ƒS(s‹Overriding to make updating the defaults after instantiation of
        the option parser possible, _update_defaults() does the dirty work.(
tprocess_default_valuesRR}RERDtcopyt_get_all_optionsRcRt
isinstanceRR„Rm(RRERtdefaultRŒ((s2/usr/lib/python2.7/site-packages/pip/baseparser.pytget_default_valuess	 cC@s(|jtjƒ|jdd|ƒdS(Nis%s
(tprint_usageRitstderrRo(RR,((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyterror#s(R?R@RARYRVRRZRsRDRzR{R|R›Rž(((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyRTˆs	
	(		5				(RAt
__future__RRiRRatreR)tdistutils.utilRtpip._vendor.sixRtpip._vendor.six.movesRt
pip.locationsRRRRt	pip.utilsRR	tcompiletIR“RR
RBR^RGRT(((s2/usr/lib/python2.7/site-packages/pip/baseparser.pyt<module>s "O