ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/models/
Upload File :
Current File : //proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/models/search_scope.pyo

�
Bu�_c@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((sR/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/models/search_scope.pytcreates"
	cCs||_||_dS(N(R	R
(tselfR	R
((sR/opt/alt/python36/lib/python3.6/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((sR/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/models/search_scope.pys	<genexpr>mss
(R
Rt
simple_urlRRturlsplitRtnetlocRRRtformattjoinR	(Rtlinestredacted_index_urlsR"tredacted_index_urltpurl((sR/opt/alt/python36/lib/python3.6/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(sR/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/models/search_scope.pytmkurl_pypi_urlys
(R
(RR2R3R"((R2sR/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/models/search_scope.pytget_index_urls_locationsqs(	t__name__t
__module__t__doc__t	__slots__tclassmethodRR R,R4(((sR/opt/alt/python36/lib/python3.6/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(((sR/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/models/search_scope.pyt<module>s

Zerion Mini Shell 1.0