hyb
2025-11-10 e0a856b5072c5a09f3f6de6da85abf90e00ee704
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Ë
ñúhUãóü—dZddlmZddlZddlZddlZddlmZddlm    Z    ddl
m Z ddl m Z ddlmZdd    lmZe r dd
lmZdd lmZej,e«Zedd „«ZGd „de«Zdd„ZGd„dee«Zy)a&
Contains command classes which may interact with an index / the network.
 
Unlike its sister module, req_command, this module still uses lazy imports
so commands which don't always hit the network (e.g. list w/o --outdated or
--uptodate) don't need waste time importing PipSession and friends.
é)Ú annotationsN)Ú    lru_cache)ÚValues)Ú TYPE_CHECKING)Úcertifi)ÚCommand)ÚCommandContextMixIn)Ú
SSLContext©Ú
PipSessioncó|—tjdkrtjd«y    ddl}    ddlm}|j|j«}|jtj««|S#t
$rtj d«YywxYw#t
$rtj d«YywxYw)N)éé
z7Disabling truststore because Python version isn't 3.10+rz1Disabling truststore since ssl support is missing)Ú
truststorez5Disabling truststore because platform isn't supported)ÚsysÚ version_infoÚloggerÚdebugÚsslÚ ImportErrorÚwarningÚ pip._vendorrr
ÚPROTOCOL_TLS_CLIENTÚload_verify_locationsrÚwhere)rrÚctxs   úRH:\Change_password\venv_build\Lib\site-packages\pip/_internal/cli/index_command.pyÚ_create_truststore_ssl_contextrs¢€ä
×ј'Ò!܏ ‰ ÐNÔOØðÛð
Ý*ð
 × 7Ñ 7Ó
8€CØ×ÑœgŸm™m›oÔ.Ø €Jøô ò܏‰ÐJÔKÙðûô ò܏‰ÐNÔOÙðús"«A6°BÁ6BÂBÂB;Â:B;cóZ‡—eZdZdZdˆfd„ Zedd„«Zdd„Z        d                                d
d„ZˆxZ    S) ÚSessionCommandMixinzE
    A class mixin for command classes needing _build_session().
    có0•—t‰|«d|_y)N)ÚsuperÚ__init__Ú_session)ÚselfÚ    __class__s €rr#zSessionCommandMixin.__init__;sø€Ü ‰ÑÔØ+/ˆ ócó¬—g}t|dd«s t|dd«}|r|j|«t|dd«}|r|j|«|xsdS)z7Return a list of index urls from user-provided options.Úno_indexFÚ    index_urlNÚextra_index_urls)ÚgetattrÚappendÚextend)ÚclsÚoptionsÚ
index_urlsÚurlÚurlss     rÚ_get_index_urlsz#SessionCommandMixin._get_index_urls?s_€ðˆ
ܐw 
¨EÔ2ܘ' ;°Ó5ˆCÙØ×!Ñ! #Ô&ܐwР2°DÓ9ˆÙ Ø × Ñ ˜dÔ #àÒ!˜TÐ!r'có˜—|j€3|j|j|««|_|j€J‚|jS)zGet a default-managed session.)r$Ú enter_contextÚ_build_session)r%r0s  rÚget_default_sessionz'SessionCommandMixin.get_default_sessionMsE€à =‰=Ð  Ø ×.Ñ.¨t×/BÑ/BÀ7Ó/KÓLˆDŒMð—=‘=Ð,Ð ,Ð,؏}‰}Ðr'cóþ—ddlm}|j}|r!tjj |«sJ‚d|j vr t«}nd}||r tjj|d«nd||n |j|j|j|«|¬«}|jr|j|_ |jr|j|_ |js|r||n |j|_|j r6|j |j dœ|_d|_|j |_|j( |j*_|j.|j*_|S)Nrr z legacy-certszhttp-v2)ÚcacheÚretriesÚ trusted_hostsr1Ú ssl_context)ÚhttpÚhttpsF)Úpip._internal.network.sessionr Ú    cache_dirÚosÚpathÚisabsÚdeprecated_features_enabledrÚjoinr;r<r4ÚcertÚverifyÚ client_certÚtimeoutÚproxyÚproxiesÚ    trust_envÚ    pip_proxyÚno_inputÚauthÚ    promptingÚkeyring_provider)r%r0r;rJr rAr=Úsessions        rr7z"SessionCommandMixin._build_sessionWs:€õ     =à×%Ñ%ˆ    Ù¤§¡§ ¡ ¨iÔ 8Ð8Ð8à  ×!DÑ!DÑ DÜ8Ó:‰KàˆKáÙ8A”"—'‘'—,‘,˜y¨)Ô4ÀtØ&Ð2‘G¸¿¹Ø!×/Ñ/Ø×+Ñ+¨GÓ4Ø#ô 
ˆð <Š<Ø$Ÿ\™\ˆGŒNð × Ò Ø"×.Ñ.ˆGŒLð ?Š?™gØ)0Ð)<™gÀ'Ç/Á/ˆGŒOð =Š=àŸ ™ Ø Ÿ™ñˆGŒOð!&ˆGÔ Ø '§ ¡ ˆGÔ ð&-×%5Ñ%5Ð!5ˆ ‰ ÔØ(/×(@Ñ(@ˆ ‰ Ô%àˆr')ÚreturnÚNone)r0rrTzlist[str] | None)r0rrTr )NN)r0rr;ú
int | NonerJrVrTr )
Ú__name__Ú
__module__Ú __qualname__Ú__doc__r#Ú classmethodr4r8r7Ú __classcell__)r&s@rr r 6sYø„ñõ0ðò "óð "óð#Ø"ð    1àð1ðð1ðð    1ð
 
÷ 1r'r có"—ddlm}|||«y)Nr)Úpip_self_version_check)Ú!pip._internal.self_outdated_checkr^)rSr0Úchecks   rÚ_pip_self_version_checkra‹s€ÝQá    ˆ'7Õr'có—eZdZdZdd„Zy)ÚIndexGroupCommandz–
    Abstract base class for commands with the index_group options.
 
    This also corresponds to the commands that permit the pip version check.
    có`—t|d«sJ‚|js |jry    |j|dt    d|j
«¬«}|5t ||«ddd«y#1swYyxYw#t$r/tjd«tjdd¬    «YywxYw)
        Do the pip version check if not disabled.
 
        This overrides the default behavior of not doing the check.
        r)Nré)r;rJz6There was an error checking the latest version of pip.zSee below for errorT)Úexc_info) ÚhasattrÚdisable_pip_version_checkr)r7ÚminrJraÚ    Exceptionrrr)r%r0rSs   rÚhandle_pip_version_checkz*IndexGroupCommand.handle_pip_version_check˜s¦€ôw 
Ô+Ð+Ð+à × ,Ò ,°×0@Ò0@Ø ð     ?à×)Ñ)ØØÜ˜A˜wŸ™Ó/ð*óˆGð
ñ :Ü'¨°Ô9÷ :÷ :ñ :ûäò    ?Ü N‰NÐSÔ TÜ L‰LÐ.¸ˆLÖ >ð    ?ús/©*A5Á A)Á A5Á)A2Á.A5Á2A5Á55B-Â,B-N)r0rrTrU)rWrXrYrZrk©r'rrcrc‘s „ñô ?r'rc)rTzSSLContext | None)rSr r0rrTrU)rZÚ
__future__rÚloggingrBrÚ    functoolsrÚoptparserÚtypingrrrÚpip._internal.cli.base_commandrÚ!pip._internal.cli.command_contextr    rr
r@r Ú    getLoggerrWrrr rarcrlr'rú<module>rus}ðñõ#ãÛ    Û
ÝÝÝ åå2ÝAáÝå8à    ˆ×    Ñ    ˜8Ó    $€ð òó ðô,RÐ-ôRójô ?˜Ð!4õ?r'