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
Ë
ñúhãóؗddlmZddlZddlZddlmZmZmZddlmZm    Z    m
Z
ddl m Z m Z mZe rddlmZdZddd„Zdd    „ZGd
„d «ZGd „d e«ZGd„de«ZGd„de«Zy)é)Ú annotationsN)ÚdatetimeÚ    timedeltaÚtimezone)Ú
formatdateÚ    parsedateÚ parsedate_tz)Ú TYPE_CHECKINGÚAnyÚMapping)Ú HTTPResponsez%a, %d %b %Y %H:%M:%S GMTcóZ—|xs#tjtj«}||zS©N)rÚnowrÚutc)ÚdeltaÚdates  úVH:\Change_password\venv_build\Lib\site-packages\pip/_vendor/cachecontrol/heuristics.pyÚ expire_afterrs#€Ø Ò -”8—<‘<¤§ ¡ Ó-€DØ %‰<ÐócóZ—ttj|j«««Sr)rÚcalendarÚtimegmÚ    timetuple)Údts rÚdatetime_to_headerrs€Ü ”h—o‘o b§l¡l£nÓ5Ó 6Ð6rcó$—eZdZdd„Zdd„Zdd„Zy)Ú BaseHeuristiccó—y)a!
        Return a valid 1xx warning header value describing the cache
        adjustments.
 
        The response is provided too allow warnings like 113
        http://tools.ietf.org/html/rfc7234#section-5.5.4 where we need
        to explicitly say response is over 24 hours old.
        z110 - "Response is Stale"©©ÚselfÚresponses  rÚwarningzBaseHeuristic.warnings€ð+rcó—iS)zïUpdate the response headers with any new headers.
 
        NOTE: This SHOULD always include some Warning header to
              signify that the response was cached by the client, not
              by way of the provided headers.
        r r!s  rÚupdate_headerszBaseHeuristic.update_headers's    €ðˆ    rcó—|j|«}|rK|jj|«|j|«}||jjd|i«|S)NÚWarning)r&ÚheadersÚupdater$)r"r#Úupdated_headersÚwarning_header_values    rÚapplyzBaseHeuristic.apply0s]€Ø×-Ñ-¨hÓ7ˆá Ø × Ñ × #Ñ # OÔ 4Ø#'§<¡<°Ó#9Ð  Ø#Ð/Ø× Ñ ×'Ñ'¨Ð4HÐ(IÔJàˆrN©r#r Úreturnú
str | None©r#r r/údict[str, str])r#r r/r )Ú__name__Ú
__module__Ú __qualname__r$r&r-r rrrrs„ó    +óô    rrcó—eZdZdZdd„Zy)Ú OneDayCachezM
    Cache the response by providing an expires 1 day in the
    future.
    cóޗi}d|jvr\t|jd«}ttd¬«t    |dddt
j iެ«}t|«|d<d|d    <|S)
NÚexpiresré)ÚdayséÚtzinfo)rÚpublicú cache-control)r)rrrrrrr)r"r#r)rr9s     rr&zOneDayCache.update_headersBss€Øˆà ˜H×,Ñ,Ñ ,ܘX×-Ñ-¨fÑ5Ó6ˆDÜ"ܘqÔ!ܘt B Q˜xÐ=´· ± Ñ=ôˆGô"4°GÓ!<ˆGIÑ Ø'/ˆGOÑ $؈rNr1)r3r4r5Ú__doc__r&r rrr7r7<s „ñô
rr7có(—eZdZdZdd„Zdd„Zdd„Zy)    Ú ExpiresAfterz;
    Cache **all** requests for a defined time period.
    c ó$—tdi|¤Ž|_y)Nr )rr)r"Úkws  rÚ__init__zExpiresAfter.__init__Us€Ü‘_ ‘_ˆ
rcóH—t|j«}t|«ddœS)Nr>)r9r?)rrr)r"r#r9s   rr&zExpiresAfter.update_headersXs €Ü˜tŸz™zÓ*ˆÜ-¨gÓ6ÈÑRÐRrcó$—d}||jzS)Nz:110 - Automatically cached for %s. Response might be stale)r)r"r#Útmpls   rr$zExpiresAfter.warning\s€ØKˆØd—j‘jѠРrN)rDr r/ÚNoner1r.)r3r4r5r@rEr&r$r rrrBrBPs„ñó%óSô!rrBcó(—eZdZdZhd£Zdd„Zdd„Zy)Ú LastModifiedaÁ
    If there is no Expires header already, fall back on Last-Modified
    using the heuristic from
    http://tools.ietf.org/html/rfc7234#section-4.2.2
    to calculate a reasonable value.
 
    Firefox also does something like this per
    https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching_FAQ
    http://lxr.mozilla.org/mozilla-release/source/netwerk/protocol/http/nsHttpResponseHead.cpp#397
    Unlike mozilla we limit this to 24-hr.
    > é,é-é”é•éšéžéõéÈéËéÌéÎcó —|j}d|vriSd|vr
|ddk7riS|j|jvriSd|vsd|vriSt|d«}|€J‚t    j
|dd«}t |d«}|€iStj«}td||z
«}|t    j
|«z
}tdt|dz d    ««}    |    |kriS||    z}
dtjttj|
««iS)
Nr9r?r>rz last-modifiedr<ré
i€Q) r)ÚstatusÚcacheable_by_default_statusesr    rrrÚtimeÚmaxÚminÚstrftimeÚTIME_FMTÚgmtime) r"Úrespr)Ú
time_tuplerÚ last_modifiedrÚ current_agerÚfreshness_lifetimer9s            rr&zLastModified.update_headers|s!€Ø%)§\¡\ˆà ˜Ñ ؈Ià ˜gÑ %¨'°/Ñ*BÀhÒ*N؈Ià ;‰;˜d×@Ñ@Ñ @؈Ià ˜Ñ   O¸7Ñ$B؈Iä! '¨&¡/Ó2ˆ
ØÐ%Ð%Ð%܏‰˜z¨"¨1˜~Ó.ˆÜ! '¨/Ñ":Ó;ˆ Ø Ð  ØˆIäi‰i‹kˆÜ˜!˜S 4™ZÓ(ˆ Ø”x—‘ }Ó5Ñ5ˆÜ  ¤C¨°©
°IÓ$>Ó?ÐØ  Ò ,؈IàÐ+Ñ+ˆØœ4Ÿ=™=¬´4·;±;¸wÓ3GÓHÐIÐIrcó—yrr )r"ras  rr$zLastModified.warningœs€ØrN)rar r/r2)rar r/r0)r3r4r5r@rZr&r$r rrrKrKas„ñ
ò %Ð!óJô@rrKr)rrrzdatetime | Noner/r)rrr/Ústr)Ú
__future__rrr[rrrÚ email.utilsrrr    Útypingr
r r Úpip._vendor.urllib3r r_rrrr7rBrKr rrú<module>rlsfðõ#ãÛ ß2Ñ2ß;Ñ;ß.Ñ.áÝ0à &€ôó
7÷ñôB-ôô(!=ô!ô"<=õ<r