hyb
2025-12-23 7e5db3a16b423ec4a43459805e277979bcac7db5
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
Ë
ñúh"Vãó8—ddlmZddlZddlZddlZddlZddlZddlmZddl    m
Z
ddl m Z m Z mZmZmZmZmZddlmZej*e«Zedgd    ¢«Ze«ZGd
„d e«Zej:e«Gd „d e««Zed«e_y)é)Úabsolute_importN)Ú
namedtuple)Ú    takewhileé)ÚConnectTimeoutErrorÚ InvalidHeaderÚ MaxRetryErrorÚ ProtocolErrorÚ
ProxyErrorÚReadTimeoutErrorÚ ResponseError)ÚsixÚRequestHistory)ÚmethodÚurlÚerrorÚstatusÚredirect_locationcó¨—eZdZed„«Zej
d„«Zed„«Zej
d„«Zed„«Zej
d„«Zy)Ú
_RetryMetacóN—tjdt«|jS©Nz}Using 'Retry.DEFAULT_METHOD_WHITELIST' is deprecated and will be removed in v2.0. Use 'Retry.DEFAULT_ALLOWED_METHODS' instead©ÚwarningsÚwarnÚDeprecationWarningÚDEFAULT_ALLOWED_METHODS©Úclss úQH:\Change_password\venv_build\Lib\site-packages\pip/_vendor/urllib3/util/retry.pyÚDEFAULT_METHOD_WHITELISTz#_RetryMeta.DEFAULT_METHOD_WHITELIST$s%€ä ‰ ð Sä ô    
ð
×*Ñ*Ð*ócóF—tjdt«||_yrr©rÚvalues  r r!z#_RetryMeta.DEFAULT_METHOD_WHITELIST-s!€ä ‰ ð Sä ô    
ð
',ˆÕ#r"cóN—tjdt«|jS©Nz’Using 'Retry.DEFAULT_REDIRECT_HEADERS_BLACKLIST' is deprecated and will be removed in v2.0. Use 'Retry.DEFAULT_REMOVE_HEADERS_ON_REDIRECT' instead©rrrÚ"DEFAULT_REMOVE_HEADERS_ON_REDIRECTrs r Ú"DEFAULT_REDIRECT_HEADERS_BLACKLISTz-_RetryMeta.DEFAULT_REDIRECT_HEADERS_BLACKLIST6s%€ä ‰ ð ^ä ô    
ð
×5Ñ5Ð5r"cóF—tjdt«||_yr'r(r$s  r r*z-_RetryMeta.DEFAULT_REDIRECT_HEADERS_BLACKLIST?s!€ä ‰ ð ^ä ô    
ð
27ˆÕ.r"cóN—tjdt«|jS©NzlUsing 'Retry.BACKOFF_MAX' is deprecated and will be removed in v2.0. Use 'Retry.DEFAULT_BACKOFF_MAX' instead©rrrÚDEFAULT_BACKOFF_MAXrs r Ú BACKOFF_MAXz_RetryMeta.BACKOFF_MAXHs%€ä ‰ ð Oä ô    
ð
×&Ñ&Ð&r"cóF—tjdt«||_yr-r.r$s  r r0z_RetryMeta.BACKOFF_MAXQs!€ä ‰ ð Oä ô    
ð
#(ˆÕr"N)Ú__name__Ú
__module__Ú __qualname__Úpropertyr!Úsetterr*r0©r"r rr#sŠ„Ø ñ+óð+ð×$Ñ$ñ,ó%ð,ðñ6óð6ð(×.Ñ.ñ7ó/ð7ðñ'óð'ð×Ññ(óñ(r"rcó‡—eZdZdZegd¢«Zegd¢«Zegd¢«ZdZdddddde    ddd    d    dd    e    e    fd
„Z
d „Z e dd „«Z d „Zd„Zd„Zdd„Zd„Zdd„Zd„Zd„Zd„Zdd„Zd„Z                        dd„Zd„Zˆfd„ZˆxZS)ÚRetryaJRetry configuration.
 
    Each retry attempt will create a new Retry object with updated values, so
    they can be safely reused.
 
    Retries can be defined as a default for a pool::
 
        retries = Retry(connect=5, read=2, redirect=5)
        http = PoolManager(retries=retries)
        response = http.request('GET', 'http://example.com/')
 
    Or per-request (which overrides the default for the pool)::
 
        response = http.request('GET', 'http://example.com/', retries=Retry(10))
 
    Retries can be disabled by passing ``False``::
 
        response = http.request('GET', 'http://example.com/', retries=False)
 
    Errors will be wrapped in :class:`~urllib3.exceptions.MaxRetryError` unless
    retries are disabled, in which case the causing exception will be raised.
 
    :param int total:
        Total number of retries to allow. Takes precedence over other counts.
 
        Set to ``None`` to remove this constraint and fall back on other
        counts.
 
        Set to ``0`` to fail on the first retry.
 
        Set to ``False`` to disable and imply ``raise_on_redirect=False``.
 
    :param int connect:
        How many connection-related errors to retry on.
 
        These are errors raised before the request is sent to the remote server,
        which we assume has not triggered the server to process the request.
 
        Set to ``0`` to fail on the first retry of this type.
 
    :param int read:
        How many times to retry on read errors.
 
        These errors are raised after the request was sent to the server, so the
        request may have side-effects.
 
        Set to ``0`` to fail on the first retry of this type.
 
    :param int redirect:
        How many redirects to perform. Limit this to avoid infinite redirect
        loops.
 
        A redirect is a HTTP response with a status code 301, 302, 303, 307 or
        308.
 
        Set to ``0`` to fail on the first retry of this type.
 
        Set to ``False`` to disable and imply ``raise_on_redirect=False``.
 
    :param int status:
        How many times to retry on bad status codes.
 
        These are retries made on responses, where status code matches
        ``status_forcelist``.
 
        Set to ``0`` to fail on the first retry of this type.
 
    :param int other:
        How many times to retry on other errors.
 
        Other errors are errors that are not connect, read, redirect or status errors.
        These errors might be raised after the request was sent to the server, so the
        request might have side-effects.
 
        Set to ``0`` to fail on the first retry of this type.
 
        If ``total`` is not set, it's a good idea to set this to 0 to account
        for unexpected edge cases and avoid infinite retry loops.
 
    :param iterable allowed_methods:
        Set of uppercased HTTP method verbs that we should retry on.
 
        By default, we only retry on methods which are considered to be
        idempotent (multiple requests with the same parameters end with the
        same state). See :attr:`Retry.DEFAULT_ALLOWED_METHODS`.
 
        Set to a ``False`` value to retry on any verb.
 
        .. warning::
 
            Previously this parameter was named ``method_whitelist``, that
            usage is deprecated in v1.26.0 and will be removed in v2.0.
 
    :param iterable status_forcelist:
        A set of integer HTTP status codes that we should force a retry on.
        A retry is initiated if the request method is in ``allowed_methods``
        and the response status code is in ``status_forcelist``.
 
        By default, this is disabled with ``None``.
 
    :param float backoff_factor:
        A backoff factor to apply between attempts after the second try
        (most errors are resolved immediately by a second try without a
        delay). urllib3 will sleep for::
 
            {backoff factor} * (2 ** ({number of total retries} - 1))
 
        seconds. If the backoff_factor is 0.1, then :func:`.sleep` will sleep
        for [0.0s, 0.2s, 0.4s, ...] between retries. It will never be longer
        than :attr:`Retry.DEFAULT_BACKOFF_MAX`.
 
        By default, backoff is disabled (set to 0).
 
    :param bool raise_on_redirect: Whether, if the number of redirects is
        exhausted, to raise a MaxRetryError, or to return a response with a
        response code in the 3xx range.
 
    :param bool raise_on_status: Similar meaning to ``raise_on_redirect``:
        whether we should raise an exception, or return a response,
        if status falls in ``status_forcelist`` range and retries have
        been exhausted.
 
    :param tuple history: The history of the request encountered during
        each call to :meth:`~Retry.increment`. The list is in the order
        the requests occurred. Each list item is of class :class:`RequestHistory`.
 
    :param bool respect_retry_after_header:
        Whether to respect Retry-After header on status codes defined as
        :attr:`Retry.RETRY_AFTER_STATUS_CODES` or not.
 
    :param iterable remove_headers_on_redirect:
        Sequence of headers to remove from the request when a response
        indicating a redirect is returned before firing off the redirected
        request.
    )ÚHEADÚGETÚPUTÚDELETEÚOPTIONSÚTRACE)ii­i÷)ÚCookieÚ AuthorizationzProxy-Authorizationéxé
NrTcó&—|tur1|tur td«‚tjdtd¬«|}|tur |j
}|tur |j }||_||_||_    ||_
||_ |dus|durd}d}
||_ |xs
t«|_||_|    |_|
|_| |_| xs
t'«|_| |_t-|Dcgc]}|j/«‘Œc}«|_ycc}w)NzoUsing both 'allowed_methods' and 'method_whitelist' together is not allowed. Instead only use 'allowed_methods'úlUsing 'method_whitelist' with Retry is deprecated and will be removed in v2.0. Use 'allowed_methods' insteadr)Ú
stacklevelFr)Ú_DefaultÚ
ValueErrorrrrrr)ÚtotalÚconnectÚreadrÚotherÚredirectÚsetÚstatus_forcelistÚallowed_methodsÚbackoff_factorÚraise_on_redirectÚraise_on_statusÚtupleÚhistoryÚrespect_retry_after_headerÚ    frozensetÚlowerÚremove_headers_on_redirect)ÚselfrIrJrKrMrrLrPrOrQrRrSrUrVrYÚmethod_whitelistÚhs                 r Ú__init__zRetry.__init__õs€ð( ¤8Ñ +ؤhÑ.Ü ð9óðô
M‰MðIä"Øõ     ð /ˆOØ œhÑ &Ø"×:Ñ:ˆOØ %¬Ñ 1Ø)-×)PÑ)PÐ &àˆŒ
؈Œ ؈Œ    ØˆŒ ؈Œ
à uÑ  ¨¡ØˆHØ %Ð à ˆŒ Ø 0Ò 9´C³EˆÔØ.ˆÔØ,ˆÔØ!2ˆÔØ.ˆÔØÒ)¤%£'ˆŒ Ø*DˆÔ'Ü*3Ø :Ö ;˜1ˆQW‰WYÒ ;ó+
ˆÕ'ùÚ ;sÃ*Dc ó—t|j|j|j|j|j
|j |j|j|j|j|j|j|j¬« }d|vrKd|vrGd|jvr*tj dt"«|j$|d<n|j$|d<|j'|«t)|«di|¤ŽS)N) rIrJrKrMrrLrOrQrRrSrUrYrVr[rPrEr7)ÚdictrIrJrKrMrrLrOrQrRrSrUrYrVÚ__dict__rrrrPÚupdateÚtype)rZÚkwÚparamss   r Únewz    Retry.new2sê€ÜØ—*‘*Ø—L‘LØ—‘Ø—]‘]Ø—;‘;Ø—*‘*Ø!×2Ñ2Ø×.Ñ.Ø"×4Ñ4Ø ×0Ñ0Ø—L‘LØ'+×'FÑ'FØ'+×'FÑ'Fô
ˆð*  RÑ 'Ð,=ÀRÑ,GØ! T§]¡]Ñ2Ü— ‘ ðMä&ôð
.2×-AÑ-AÐ)Ò*à,0×,@Ñ,@Ð(Ñ)à ‰ bÔØŒtD‹zÑ#˜FÑ#Ð#r"có®—|€||n |j}t|t«r|St|«xrd}|||¬«}tj d||«|S)z3Backwards-compatibility for the old retries format.N)rMz!Converted retries value: %r -> %r)ÚDEFAULTÚ
isinstancer9ÚboolÚlogÚdebug)rÚretriesrMÚdefaultÚ new_retriess     r Úfrom_intzRetry.from_intVsY€ð ˆ?Ø!(Ð!4‘g¸#¿+¹+ˆGä gœuÔ %؈N䘓>Ò* dˆÙ˜'¨HÔ5ˆ Ü     ‰    Ð5°wÀ ÔLØÐr"c
óȗtttd„t|j««««}|dkry|j
d|dz
zz}t |j|«S)zIFormula for computing the current backoff
 
        :rtype: float
        có—|jduS©N)r)Úxs r ú<lambda>z(Retry.get_backoff_time.<locals>.<lambda>ls€ A×$7Ñ$7¸4Ð$?€r"érr)ÚlenÚlistrÚreversedrUrQÚminr/)rZÚconsecutive_errors_lenÚ backoff_values   r Úget_backoff_timezRetry.get_backoff_timedsf€ô "%Ü ÜÑ?ÄÈ$Ï,É,ÓAWÓXó ó"
Ðð
" QÒ &Øà×+Ñ+¨qÐ5KÈaÑ5OÑ/PÑQˆ ܐ4×+Ñ+¨]Ó;Ð;r"cóH—tjd|«r t|«}nxtjj |«}|€t d|z«‚|d€|dddz|ddz}tjj|«}|tj«z
}|dkrd}|S)Nz^\s*[0-9]+\s*$zInvalid Retry-After header: %sé    )rrCr)    ÚreÚmatchÚintÚemailÚutilsÚ parsedate_tzrÚ    mktime_tzÚtime)rZÚ retry_afterÚsecondsÚretry_date_tupleÚ
retry_dates     r Úparse_retry_afterzRetry.parse_retry_afterus«€ä 8‰8Ð% {Ô 3ܘ+Ó&‰Gä$Ÿ{™{×7Ñ7¸ ÓDÐ ØÐ'Ü#Ð$DÀ{Ñ$RÓSÐSØ Ñ"Ð*ð
$4°B°QÐ#7¸$Ñ#>ÐAQÐRTÐRUÐAVÑ#VР䟙×.Ñ.Ð/?Ó@ˆJØ ¤4§9¡9£;Ñ.ˆGà QŠ;؈Gàˆr"có`—|jjd«}|€y|j|«S)z(Get the value of Retry-After in seconds.z Retry-AfterN)ÚheadersÚgetr‹©rZÚresponser‡s   r Úget_retry_afterzRetry.get_retry_afterŒs4€ð×&Ñ&×*Ñ*¨=Ó9ˆ à Ð Øà×%Ñ% kÓ2Ð2r"cóV—|j|«}|rtj|«yy)NTF)r‘r†Úsleeprs   r Úsleep_for_retryzRetry.sleep_for_retry–s'€Ø×*Ñ*¨8Ó4ˆ Ù Ü J‰J{Ô #Øàr"cóZ—|j«}|dkrytj|«y)Nr)r|r†r“)rZÚbackoffs  r Ú_sleep_backoffzRetry._sleep_backoffžs&€Ø×'Ñ'Ó)ˆØ aŠ<Ø Ü 
‰
7Õr"cóh—|jr|r|j|«}|ry|j«y)aBSleep between retry attempts.
 
        This method will respect a server's ``Retry-After`` response header
        and sleep the duration of the time requested. If that is not present, it
        will use an exponential backoff. By default, the backoff factor is 0 and
        this method will return immediately.
        N)rVr”r—)rZrÚslepts   r r“z Retry.sleep¤s1€ð × *Ò *©xØ×(Ñ(¨Ó2ˆEÙØà ×ÑÕr"cóZ—t|t«r |j}t|t«S)zzErrors when we're fairly sure that the server did not receive the
        request, so it should be safe to retry.
        )rhr Úoriginal_errorr©rZÚerrs  r Ú_is_connection_errorzRetry._is_connection_error´s'€ô cœ:Ô &Ø×$Ñ$ˆCܘ#Ô2Ó3Ð3r"có.—t|ttf«S)zErrors that occur after the request has been started, so we should
        assume that the server began processing it.
        )rhr r
rœs  r Ú_is_read_errorzRetry._is_read_error¼s€ô˜#Ô 0´-Ð@ÓAÐAr"có°—d|jvr'tjdt«|j}n |j
}|r|j «|vryy)zyChecks if a given HTTP method should be retried upon, depending if
        it is included in the allowed_methods
        r[rEFT)r`rrrr[rPÚupper)rZrrPs   r Ú_is_method_retryablezRetry._is_method_retryableÂsS€ð  §¡Ñ .Ü M‰MðIä"ô ð
#×3Ñ3‰Oà"×2Ñ2ˆOá ˜vŸ|™|›~°_ÑDØØr"có¸—|j|«sy|jr||jvry|jxr |jxr|xr||jvS)awIs this method/status code retryable? (Based on allowlists and control
        variables such as the number of total retries to allow, whether to
        respect the Retry-After header, whether this header is present, and
        whether the returned status code is on the list of status codes to
        be retried upon on the presence of the aforementioned header)
        FT)r£rOrIrVÚRETRY_AFTER_STATUS_CODES)rZrÚ status_codeÚhas_retry_afters    r Úis_retryzRetry.is_retryÖsg€ð×(Ñ(¨Ô0Øà ×  Ò   [°D×4IÑ4IÑ%IØð J‰Jò ?Ø×/Ñ/ò ?àò ?ð × =Ñ =Ð=ð        
r"có֗|j|j|j|j|j|j
f}t td|««}|syt|«dkS)zAre we out of retries?NFr)    rIrJrKrMrrLrwÚfilterry)rZÚ retry_countss  r Ú is_exhaustedzRetry.is_exhaustedês^€ð J‰JØ L‰LØ I‰IØ M‰MØ K‰KØ J‰Jð 
ˆ ôœF 4¨Ó6Ó7ˆ ÙØä<Ó  1Ñ$Ð$r"c    óT—|jdur"|r tjt|«||«‚|j}||dz}|j}|j
}    |j }
|j} |j} d} d}d}|r=|j|«r,|dur tjt|«||«‚|ó|dz}ní|rN|j|«r=|    dus|j|«s tjt|«||«‚|    £|    dz}    n|r| ™| dz} n“|r6|j«r&|
|
dz}
d} |j«}|j}n[tj} |rI|jr=| | dz} tjj!|j¬«} |j}|j"t%|||||«fz}|j'|||    |
| | |¬«}|j)«rt+|||xs t| ««‚t,j/d||«|S)    a Return a new Retry object with incremented retry counters.
 
        :param response: A response object, or None, if the server did not
            return a response.
        :type response: :class:`~urllib3.response.HTTPResponse`
        :param Exception error: An error encountered during the request, or
            None if the response was received successfully.
 
        :return: A new ``Retry`` object.
        FNruÚunknownztoo many redirects)r¦)rIrJrKrMrrLrUz$Incremented Retry for (url='%s'): %r)rIrÚreraiserbrJrKrMrrLržr r£Úget_redirect_locationr Ú GENERIC_ERRORÚSPECIFIC_ERRORÚformatrUrrer¬r    rjrk)rZrrrrÚ_poolÚ _stacktracerIrJrKrMÚ status_countrLÚcauserrrUÚ    new_retrys                  r Ú    incrementzRetry.incrementús*€ð& :‰:˜Ñ ¡5ä—+‘+œd 5›k¨5°+Ó>Ð >à—
‘
ˆØ Ð Ø Q‰JˆEà—,‘,ˆØy‰yˆØ—=‘=ˆØ—{‘{ˆ Ø—
‘
ˆØˆØˆØ Ðá T×.Ñ.¨uÔ5à˜%ÑÜ—k‘k¤$ u£+¨u°kÓBÐBØÐ$ؘ1‘ ‘á t×*Ñ*¨5Ô1àu‰} D×$=Ñ$=¸fÔ$EÜ—k‘k¤$ u£+¨u°kÓBÐBØÐ!ؘ‘    ‘á àРؘ‘
‘á ˜(×8Ñ8Ô:àÐ#ؘA‘ Ø(ˆEØ (× >Ñ >Ó @Ð Ø—_‘_‰Fô
"×/Ñ/ˆEÙ˜HŸOšOØÐ+Ø  AÑ%LÜ%×4Ñ4×;Ñ;ÈÏÉÐ;ÓXØ!Ÿ™à—,‘,Ü ˜6 3¨¨vÐ7HÓ Ið"
ñ
ˆð—H‘HØØØØØØØðó
ˆ    ð × !Ñ !Ô #Ü  s¨EÒ,I´]À5Ó5IÓJÐ Jä     ‰    Ð8¸#¸yÔIàÐr"có:—djt|«|¬«S)Nz|{cls.__name__}(total={self.total}, connect={self.connect}, read={self.read}, redirect={self.redirect}, status={self.status}))rrZ)r³rb)rZs r Ú__repr__zRetry.__repr__Xs€ð Pç
‰&”T˜$“Z dˆ&Ó
+ð    ,r"cóΕ—|dk(r&tjdt«|jS    t    t t |«|«S#t$rt    t |«cYSwxYw)Nr[rE)rrrrPÚgetattrÚsuperr9ÚAttributeError)rZÚitemÚ    __class__s  €r Ú __getattr__zRetry.__getattr__^sdø€Ø Ð%Ò %ä M‰MðIä"ô ð
×'Ñ'Ð 'ð    (Üœ5¤¨Ó-¨tÓ4Ð 4øÜò    (Üœ5 $Ó'Ò 'ð    (ús®AÁA$Á#A$)TNrr)F)NNNNNN)r2r3r4Ú__doc__rWrr¥r)r/rGr]reÚ classmethodror|r‹r‘r”r—r“ržr r£r¨r¬r¹r»rÂÚ __classcell__)rÁs@r r9r9[sðø„ñFñR(Ú<óÐñ
 )ªÓ9Ðñ*3Ú:ó*Ð&ð
ÐðØØ ØØØØ ØØØØØØ#'Ø#+à!ó#;
òz"$ðHò óð ò<ò"ò.3óòó ò 4òBò ó(
ò(%ð$Ø ØØØØó\ò|,÷ (ð (r"r9é) Ú
__future__rr‚Úloggingrr†rÚ collectionsrÚ    itertoolsrÚ
exceptionsrrr    r
r r r ÚpackagesrÚ    getLoggerr2rjrÚobjectrGrbrÚ add_metaclassr9rgr7r"r ú<module>rÐs¤ðÝ&ã ÛÛ    Û ÛÝ"Ý÷÷ñõà€g×јÓ!€ñØÒOó€ñ ‹8€ô5(ô5(ðp€×ѐ:ÓôN(ˆFóN(óðN(ñda“€… r"