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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
Ë
ñúhZOãóŒ—ddlmZddlZddlZddlZddlZddlZddlZddlmZ    ddlm
Z ddl m Z ddlmZddlmZdd    lmZ    ddlZej*Z    eZ    eZddlmZddl m!Z!ddl"m#Z#m$Z$m%Z%m&Z&ddl'm(Z(m)Z)m*Z*ddl+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1ddl2m3Z3m4Z4ejje6«Z7dddœZ8ejrddd«Z:ejvd«Z<Gd„dee=«ZGd„de«Z>d„Z?d „Z@Gd!„d"e=«ZAeseAZ>e>ZBy#eef$rdZGd
„d e«ZYŒÂwxYw#e$rGd „d e«ZYŒÕwxYw#e$rGd„de«ZYŒèwxYw)#é)Úabsolute_importN)Úerror)Útimeouté)Úsix)ÚHTTPConnection)Ú HTTPException)Úcreate_proxy_ssl_contextcó —eZdZy)Ú BaseSSLErrorN©Ú__name__Ú
__module__Ú __qualname__©óúQH:\Change_password\venv_build\Lib\site-packages\pip/_vendor/urllib3/connection.pyr r ó„Ø rr có —eZdZy)ÚConnectionErrorNr rrrrr!rrrcó —eZdZy)ÚBrokenPipeErrorNr rrrrr*rrr)ÚHTTPHeaderDict©Ú __version__)ÚConnectTimeoutErrorÚNewConnectionErrorÚSubjectAltNameWarningÚSystemTimeWarning)Ú SKIP_HEADERÚSKIPPABLE_HEADERSÚ
connection)Úassert_fingerprintÚcreate_urllib3_contextÚ is_ipaddressÚresolve_cert_reqsÚresolve_ssl_versionÚssl_wrap_socket)ÚCertificateErrorÚmatch_hostnameéPi»)ÚhttpÚhttpsièz[^-!#$%&'*+.^_`|~0-9a-zA-Z]cóЇ—eZdZdZedZejejdfgZ    dZ
dZ d„Z e d„«Zejd„«Zd    „Zd
„Zd „Zd „Zd „Zd„Zdˆfd„    Zdd„ZˆxZS)ra5
    Based on :class:`http.client.HTTPConnection` but provides an extra constructor
    backwards-compatibility layer between older and newer Pythons.
 
    Additional keyword parameters are used to configure attributes of the connection.
    Accepted parameters include:
 
    - ``strict``: See the documentation on :class:`urllib3.connectionpool.HTTPConnectionPool`
    - ``source_address``: Set the source address for the current connection.
    - ``socket_options``: Set specific options on the underlying socket. If not specified, then
      defaults are loaded from ``HTTPConnection.default_socket_options`` which includes disabling
      Nagle's algorithm (sets TCP_NODELAY to 1) unless the connection is behind a proxy.
 
      For example, if you wish to enable TCP Keep Alive in addition to the defaults,
      you might pass:
 
      .. code-block:: python
 
         HTTPConnection.default_socket_options + [
             (socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1),
         ]
 
      Or you may want to disable the defaults by passing an empty list (e.g., ``[]``).
    r,rFNcóD—tjs|jdd«|jd«|_|jd|j
«|_|jdd«|_|jdd«|_tj|g|¢­i|¤Žy)NÚstrictÚsource_addressÚsocket_optionsÚproxyÚ proxy_config) rÚPY2ÚpopÚgetr1Údefault_socket_optionsr2r3r4Ú_HTTPConnectionÚ__init__)ÚselfÚargsÚkws   rr:zHTTPConnection.__init__ss†€ÜwŠwØ F‰F8˜TÔ "ð!Ÿf™fÐ%5Ó6ˆÔð!Ÿf™fÐ%5°t×7RÑ7RÓSˆÔð—V‘V˜G TÓ*ˆŒ
ØŸF™F >°4Ó8ˆÔä× Ñ  Ð3¨Ò3°Ó3rcó8—|jjd«S)aŸ
        Getter method to remove any trailing dots that indicate the hostname is an FQDN.
 
        In general, SSL certificates don't include the trailing dot indicating a
        fully-qualified domain name, and thus, they don't validate properly when
        checked against a domain name that includes the dot. In addition, some
        servers may not expect to receive the trailing dot when provided.
 
        However, the hostname with trailing dot is critical to DNS resolution; doing a
        lookup with the trailing dot will properly only resolve the appropriate FQDN,
        whereas a lookup without a trailing dot will search the system's search domain
        list. Thus, it's important to keep the original host around for use only in
        those cases where it's appropriate (i.e., when doing DNS lookup to establish the
        actual TCP connection across which we're going to send HTTP requests).
        ú.)Ú    _dns_hostÚrstrip©r;s rÚhostzHTTPConnection.host„s€ð"~‰~×$Ñ$ SÓ)Ð)rcó—||_y)z×
        Setter for the `host` property.
 
        We assume that only urllib3 uses the _dns_host attribute; httplib itself
        only uses `host`, and it seems reasonable that other libraries follow suit.
        N)r@)r;Úvalues  rrCzHTTPConnection.host—s €ðˆrc    ó„—i}|jr|j|d<|jr|j|d<    tj|j|j
f|j fi|¤Ž}|S#t$r(t|d|j›d|j ›d«‚t$r}t|d|z«‚d}~wwxYw)zoEstablish a socket connection and set nodelay settings on it.
 
        :return: New socket connection.
        r1r2zConnection to z timed out. (connect timeout=ú)z(Failed to establish a new connection: %sN) r1r2r"Úcreate_connectionr@ÚportrÚ SocketTimeoutrrCÚ SocketErrorr)r;Úextra_kwÚconnÚes    rÚ    _new_connzHTTPConnection._new_conn¡s̀ð
ˆØ × Ò Ø)-×)<Ñ)<ˆHÐ%Ñ &à × Ò Ø)-×)<Ñ)<ˆHÐ%Ñ &ð    Ü×/Ñ/Ø—‘ §¡Ð+¨T¯\©\ñØ=EñˆDð ˆ øôò    Ü%Ùà—9“9˜dŸl›lð,óð ô ò    Ü$ØÐ@À1ÑDóð ûð    úsº7A3Á38B?Â+B:Â:B?có—t|dd«S)NÚ _tunnel_host)ÚgetattrrBs rÚ_is_using_tunnelzHTTPConnection._is_using_tunnelÀs€ät˜^¨TÓ2Ð2rcób—||_|j«r|j«d|_yy)Nr)ÚsockrSÚ_tunnelÚ    auto_open©r;rMs  rÚ _prepare_connzHTTPConnection._prepare_connÄs*€ØˆŒ    Ø ×  Ñ  Ô "à L‰LŒNàˆDNð     #rcóF—|j«}|j|«y©N)rOrYrXs  rÚconnectzHTTPConnection.connectÌs€Ø~‰~ÓˆØ ×ј4Õ rcó¦—tj|«}|r td|›d|j«›d«‚t    j
|||g|¢­i|¤ŽS)ú z+Method cannot contain non-token characters z (found at least rG)Ú_CONTAINS_CONTROL_CHAR_REÚsearchÚ
ValueErrorÚgroupr9Ú
putrequest)r;ÚmethodÚurlr<ÚkwargsÚmatchs      rrczHTTPConnection.putrequestÐsU€ô*×0Ñ0°Ó8ˆÙ Ýâ˜5Ÿ;™;=ð*óð ô
×)Ñ)¨$°¸ÐM¸dÒMÀfÑMÐMrc ó0—td„|D««stj||g|¢­Žytj|j ««t vrCtddjttjtt «««›d«‚y)r^c3óRK—|]}t|t«xr    |tk(–—Œ!y­wr[)Ú
isinstanceÚstrr )Ú.0Úvs  rú    <genexpr>z+HTTPConnection.putheader.<locals>.<genexpr>ßs$èø€ÒK¸q”:˜a¤Ó%Ò:¨!¬{Ñ*:Ó:ÑKùs‚%'z(urllib3.util.SKIP_HEADER only supports 'z', 'ú'N) Úanyr9Ú    putheaderrÚ
ensure_strÚlowerr!raÚjoinÚmaprkÚtitleÚsorted)r;ÚheaderÚvaluess   rrqzHTTPConnection.putheaderÝss€äÑKÀFÔKÔKÜ × %Ñ % d¨FÐ <°VÔ <Ü ^‰^˜FŸL™L›NÓ +Ô3DÑ DÝà—;‘;œs¤3§9¡9¬fÔ5FÓ.GÓHÕIðLóð ðErcóò•—t|dd«%|jj|j«|€i}n|j    «}dd„|D«vr t «|d<t t|#||||¬«y)NrUú
user-agentc3óbK—|]'}tj|j««–—Œ)y­wr[)rrrrs)rlÚks  rrnz)HTTPConnection.request.<locals>.<genexpr>òsèø€ÒK¸a¤§¡¨q¯w©w«y× 9ÑKùs‚-/ú
User-Agent)ÚbodyÚheaders)    rRrUÚ
settimeoutrÚcopyÚ_get_default_user_agentÚsuperrÚrequest)r;rdrerr€Ú    __class__s     €rr…zHTTPConnection.requestçstø€ô 4˜ Ó &Ð 2Ø I‰I×  Ñ   §¡Ô .à ˆ?؉Gð—l‘l“nˆGØ ÑKÀ7ÔKÑ KÜ$;Ó$=ˆGLÑ !Ü Œn˜dÑ+¨F°C¸dÈGÐ+ÕTrc    ó—|xsi}t|Dcgc]%}tj|j««‘Œ'c}«}d|v}d|v}|j    ||||¬«d|vr|j dt ««|j«D]\}    }
|j |    |
«Œd|vr|j dd«|j«|¢tjtfz} t|| «r|f}|D]v} | sŒt| t«s| jd
«} tt| ««d d    } t| j««}|d z }|| z }|d z }|j!|«Œx|j!d «y    cc}w)zƒ
        Alternative to the common request method, which sends the
        body with chunked encoding and not as one block
        zaccept-encodingrC)Úskip_accept_encodingÚ    skip_hostr{r~ztransfer-encodingzTransfer-EncodingÚchunkedNÚutf8és
s0
 
)ÚsetrrrrsrcrqrƒÚitemsÚ
endheadersÚ string_typesÚbytesrjÚencodeÚhexÚlenÚ    bytearrayÚsend)r;rdrerr€r}Ú header_keysrˆr‰rxrEÚstringish_typesÚchunkÚlen_strÚto_sends               rÚrequest_chunkedzHTTPConnection.request_chunkedös~€ð
’-˜RˆÜ¸gÖF¸œ3Ÿ>™>¨!¯'©'«)Õ4ÒFÓGˆ Ø0°KÐ?ÐØ˜kÐ)ˆ    Ø ‰Ø CÐ.BÈið    ô    
ð ˜{Ñ *Ø N‰N˜<Ô)@Ó)BÔ CØ$Ÿ]™]›_ò    *‰MˆFEØ N‰N˜6 5Õ )ð    *à  kÑ 1Ø N‰NÐ.°    Ô :Ø ‰Ôà Ð Ü!×.Ñ.´%°Ñ9ˆOܘ$ Ô0ؐwØò
#ÙØÜ! %¬Ô/Ø!ŸL™L¨Ó0EÜœc %›j›/¨!¨"Ð-Ü# G§N¡NÓ$4Ó5Ø˜7Ñ"Ø˜5Ñ Ø˜7Ñ"Ø—    ‘    ˜'Õ"ð
#ð         ‰    ,Õùò?Gs*F)NN)rrrÚ__doc__Úport_by_schemeÚ default_portÚsocketÚ IPPROTO_TCPÚ TCP_NODELAYr8Ú is_verifiedÚproxy_is_verifiedr:ÚpropertyrCÚsetterrOrSrYr\rcrqr…rœÚ __classcell__)r†s@rrrLsœø„ñð2" &Ñ)€Lð &×1Ñ1°6×3EÑ3EÀqÐIÐJÐð€KðÐò4ð"ñ*óð*ð$
‡[[ñóðòò>3òò!ò Nòõ U÷% rrcóˆ—eZdZdZedZdZdZdZdZ    dZ
dZ dZ ddddde jddfd„Z                                    d    d„Zd„Zd„Zy)
ÚHTTPSConnectionz•
    Many of the parameters to this constructor are passed to the underlying SSL
    socket by means of :py:func:`urllib3.util.ssl_wrap_socket`.
    r-NFc
 óŽ—tj|||f||dœ|
¤Ž||_||_||_||_|    |_d|_y)N)r0rr-)rr:Úkey_fileÚ    cert_fileÚ key_passwordÚ ssl_contextÚserver_hostnameÚ    _protocol) r;rCrIr«r¬r­r0rr®r¯r=s            rr:zHTTPSConnection.__init__.sR€ô    ×Ñ  d¨DÐW¸ÈÑWÐTVÒWà ˆŒ Ø"ˆŒØ(ˆÔØ&ˆÔØ.ˆÔð!ˆrc
óf—|€.|j|jj}n td«}||_||_||_||_||_||_|xrtjj|«|_ |xrtjj|«|_ |    |_y)zX
        This method should only be called once, before the connection is used.
        N)r®Ú verify_moder&r«r¬Ú    cert_reqsr­Úassert_hostnamer#ÚosÚpathÚ
expanduserÚca_certsÚ ca_cert_dirÚ ca_cert_data)
r;r«r¬r³r­r¸r´r#r¹rºs
          rÚset_certzHTTPSConnection.set_certHs€ð" Ð Ø×ÑÐ+Ø ×,Ñ,×8Ñ8‘    ä-¨dÓ3    à ˆŒ Ø"ˆŒØ"ˆŒØ(ˆÔØ.ˆÔØ"4ˆÔØ ÒA¤R§W¡W×%7Ñ%7¸Ó%AˆŒ Ø&ÒJ¬2¯7©7×+=Ñ+=¸kÓ+JˆÔØ(ˆÕrc ó—|j«x|_}|j}d}|j«rJ|jr|j ||«x|_}d}|j «d|_|j}|}|j |j}tjj«tk}|r-tjdj!t«t"«d}|j$€:d}t't)|j*«t-|j.«¬«|_|j$}t-|j.«|_|j2s6|j4s*|j6s|rt9|d«r|j;«t=||j>|j@|jB|j2|j4|j6|||¬«
|_|r|j*€ut9|jd«r_|jjE«d    vrCtjd
|j›d |jjE«›d tF«|jHr1tI|jjKd¬ «|jH«n§|j0tLjNk7rŠtQ|dd«s}|jRduro|jjK«}|jUdd«s)tjdj!|«tV«tY||jRxs|«|j0tLjZk(xs|jHdu|_.y)NFTrzWSystem time is way off (before {0}). This will probably lead to SSL verification errors)Ú ssl_versionr³Úload_default_certs)
rUÚkeyfileÚcertfiler­r¸r¹rºr¯r®Ú
tls_in_tlsÚversion>úTLSv1.1ÚTLSv1zjNegotiating TLSv1/TLSv1.1 by default is deprecated and will be disabled in urllib3 v2.0.0. Connecting to 'z' with 'z;' can be enabled by explicitly opting-in with 'ssl_version')Ú binary_formÚcheck_hostnameÚsubjectAltNamerúëCertificate for {0} has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/urllib3/urllib3/issues/497 for details.))/rOrUrCrSÚtls_in_tls_requiredÚ_connect_tls_proxyrVrWrQr¯ÚdatetimeÚdateÚtodayÚ RECENT_DATEÚwarningsÚwarnÚformatrr®r$r'r½r&r³r²r¸r¹rºÚhasattrr¾r(r«r¬r­rÂÚDeprecationWarningr#Ú getpeercertÚsslÚ    CERT_NONErRr´r7rÚ_match_hostnameÚ CERT_REQUIREDr£)    r;rMÚhostnamerÁr¯Ú is_time_offÚdefault_ssl_contextÚcontextÚcerts             rr\zHTTPSConnection.connectisó€àŸ>™>Ó+Ð+ˆŒ    DØ—9‘9ˆØˆ
à ×  Ñ  Ô "Ø×'Ò'Ø#'×#:Ñ#:¸8ÀTÓ#JÐJ”    ˜DØ!
ð L‰LŒNàˆDŒNð×(Ñ(ˆHà"ˆØ × Ñ Ð +Ø"×2Ñ2ˆOä—m‘m×)Ñ)Ó+¬kÑ9ˆ Ù Ü M‰Mð6ç‘&œÓ%Ü!ô  ð$ÐØ × Ñ Ð #Ø"&Ð Ü5Ü/°×0@Ñ0@ÓAÜ+¨D¯N©NÓ;ô ˆDÔ ð
×"Ñ"ˆÜ/°·±Ó?ˆÔð
— ’ Ø×$Ò$Ø×%Ò%Ù#ܘÐ!5Ô6à × &Ñ &Ô (ä#ØØ—M‘MØ—^‘^Ø×*Ñ*Ø—]‘]Ø×(Ñ(Ø×*Ñ*Ø+ØØ!ô 
ˆŒ    ñ"  Ø× Ñ Ð(ܘŸ    ™     9Ô-Ø—    ‘    ×!Ñ!Ó#Ð';Ñ;ä MŠMð)-¯    «    °4·9±9×3DÑ3DÕ3FðHô#ô  ð × "Ò "Ü Ø—    ‘    ×%Ñ%°$Ð%Ó7¸×9PÑ9Põ ð × Ñ ¤3§=¡=Ò 0ܘGÐ%5°uÔ=Ø×$Ñ$¨EÑ1ð
—9‘9×(Ñ(Ó*ˆDØ—8‘8Ð,¨bÔ1Ü— ‘ ð(÷)/©¨xÓ(8ä)ôô ˜D $×"6Ñ"6Ò"I¸/Ô Jð × Ñ ¤3×#4Ñ#4Ñ 4ò 3Ø×&Ñ&¨dÐ2ð     Õrcó~—|j}|j}|rt|||¬«St|j|j
|j |j|j«}t||j |j|j||¬«}|jtjk7ret|dd«sX|j«}|jdd«s)tj dj#|«t$«t'||«|jtj(k(|_|S)zY
        Establish a TLS connection to the proxy using the provided SSL context.
        )rUr¯r®)rUr¸r¹rºr¯r®rÆFrÇrrÈ)r4r®r(r
r½r³r¸r¹rºr²rÕrÖrRrÔr7rÏrÐrÑrr×rØr¤)r;rÙrMr4r®r rÝs       rrÊz"HTTPSConnection._connect_tls_proxyßs&€ð×(Ñ(ˆ Ø"×.Ñ.ˆ Ù ô#ØØ (Ø'ôð ô /Ø × Ñ Ø N‰NØ M‰MØ × Ñ Ø × Ñ ó 
ˆ ô!ØØ—]‘]Ø×(Ñ(Ø×*Ñ*Ø$Ø#ô 
ˆð × "Ñ "¤c§m¡mÒ 3¼GØ Ð)¨5ô=
ð &6×%Ñ%Ó'ˆDØ—8‘8Ð,¨bÔ1Ü— ‘ ð(÷)/©¨xÓ(8ä)ôô ˜D (Ô +à!,×!8Ñ!8¼C×<MÑ<MÑ!MˆÔ؈ r)    NNNNNNNNN)rrrrržrŸr³r¸r¹rºr½r#rÉr Ú_GLOBAL_DEFAULT_TIMEOUTr:r»r\rÊrrrr©r©sŒ„ñð
" 'Ñ*€Là€IØ€HØ€KØ€LØ€KØÐØÐð
ØØØØØ×.Ñ.ØØó!ð8ØØØØØØØØó)òBt
ól6rr©cóº—|jd«}t|«r|}    t||«y#t$r$}tj d||«||_‚d}~wwxYw)Nzu[]z@Certificate did not match expected hostname: %s. Certificate: %s)Ústripr%r*r)ÚlogÚwarningÚ
_peer_cert)rÝÚasserted_hostnameÚstripped_hostnamerNs    rr×r×se€ð*×/Ñ/°Ó6ÐÜÐ%Ô&Ø-Ðð ܐtÐ.Õ/øÜ ò    Ü  ‰ Ø NØ Ø ô    
ðˆŒ Ø ûð    ús  -­    A¶AÁAcó—dtzS)Nzpython-urllib3/%srrrrrƒrƒ.s €Ø ¤Ñ ,Ð,rcó—eZdZdZy)ÚDummyConnectionz-Used to detect a failed ConnectionCls import.N)rrrrrrrréré2s„Ù7àrré)CÚ
__future__rrËÚloggingrµÚrer rÏrrKrrJÚpackagesrÚpackages.six.moves.http_clientrr9r    Ú
util.proxyr
rÕÚSSLErrorr Ú ImportErrorÚAttributeErrorÚ BaseExceptionrÚ    NameErrorÚ    ExceptionrÚ _collectionsrÚ_versionrÚ
exceptionsrrrrÚutilr r!r"Ú    util.ssl_r#r$r%r&r'r(Úutil.ssl_match_hostnamer)r*Ú    getLoggerrrâržrÌrÎÚcompiler_Úobjectr©r×rƒréÚVerifiedHTTPSConnectionrrrú<module>rsgðÝ&ãÛÛ    Û    Û ÛÝ'Ý+åÝMÝ9Ý0ð Ûà—<‘<€Lð à%€Oð à%€Oõ)Ý!÷ó÷ =Ñ<÷÷÷Fà€g×јÓ!€à sÑ+€ðˆhm‰m˜D ! QÓ'€ à&˜BŸJ™JÐ'EÓFÐôO _ fôO ôdwnôwòtò,-ô    fô    ñ  Ø%€Oð*ÑøðO    ^Ð$ò Ø
€Cô }ö ð ûðò ô ˜)ö ð ûðò ô ˜)ö ð ús6ÁDÁDÁD0ÄDÄDÄD-Ä,D-Ä0EÅE