Hacked By AnonymousFox

Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pyc

�
�Rec@s�ddlZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZddl
mZmZddlmZer�ddlmZneje�Zd	efd
��YZdS(i����N(tcanonicalize_name(tparse(tPyPI(thas_tls(tnormalize_pathtredact_auth_from_url(tMYPY_CHECK_RUNNING(tListtSearchScopecBsDeZdZddgZed��Zd�Zd�Zd�ZRS(sF
    Encapsulates the locations that pip is configured to search.
    t
find_linkst
index_urlscCs�g}xT|D]L}|jd�rLt|�}tjj|�rL|}qLn|j|�q
Wt�s�xLtj||�D]5}t	j
|�}|jdkrytj
d�PqyqyWn|d|d|�S(sQ
        Create a SearchScope object after normalizing the `find_links`.
        t~thttpssipip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.R	R
(t
startswithRtostpathtexiststappendRt	itertoolstchainturllib_parseturlparsetschemetloggertwarning(tclsR	R
tbuilt_find_linkstlinktnew_linktparsed((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pytcreates"
	cCs||_||_dS(N(R	R
(tselfR	R
((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pyt__init__Fs	cCs�g}g}|jr�|jtjgkr�x`|jD]U}t|�}tj|�}|jr||jr|tj	d|�n|j
|�q4W|j
djdj|���n|j
r�|j
djdjd�|j
D����ndj|�S(Ns:The index url "%s" seems invalid, please provide a scheme.sLooking in indexes: {}s, sLooking in links: {}css|]}t|�VqdS(N(R(t.0turl((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pys	<genexpr>mss
(R
Rt
simple_urlRRturlsplitRtnetlocRRRtformattjoinR	(Rtlinestredacted_index_urlsR"tredacted_index_urltpurl((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pytget_formatted_locationsOs$
	cs/�fd�}g|jD]}||�^qS(s�Returns the locations found via self.index_urls

        Checks the url_name on the main (first in the list) index and
        use this url_name to produce all locations
        csAtj|tjt����}|jd�s=|d}n|S(Nt/(t	posixpathR'RtquoteRtendswith(R"tloc(tproject_name(s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pytmkurl_pypi_urlys
(R
(RR2R3R"((R2s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pytget_index_urls_locationsqs(	t__name__t
__module__t__doc__t	__slots__tclassmethodRR R,R4(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pyRs)			"(RtloggingRR.tpip._vendor.packaging.utilsRtpip._vendor.six.moves.urllibRRtpip._internal.models.indexRtpip._internal.utils.compatRtpip._internal.utils.miscRRtpip._internal.utils.typingRttypingRt	getLoggerR5RtobjectR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pyt<module>s

Hacked By AnonymousFox1.0, Coded By AnonymousFox