MCPcopy
hub / github.com/urllib3/urllib3 / is_exhausted

Method is_exhausted

src/urllib3/util/retry.py:433–450  ·  view source on GitHub ↗

Are we out of retries?

(self)

Source from the content-addressed store, hash-verified

431 )
432
433 def is_exhausted(self) -> bool:
434 """Are we out of retries?"""
435 retry_counts = [
436 x
437 for x in (
438 self.total,
439 self.connect,
440 self.read,
441 self.redirect,
442 self.status,
443 self.other,
444 )
445 if x
446 ]
447 if not retry_counts:
448 return False
449
450 return min(retry_counts) < 0
451
452 def increment(
453 self,

Callers 5

test_retry_total_noneMethod · 0.95
test_retry_defaultMethod · 0.95
test_retry_otherMethod · 0.95
test_exhaustedMethod · 0.80
incrementMethod · 0.80

Calls

no outgoing calls

Tested by 4

test_retry_total_noneMethod · 0.76
test_retry_defaultMethod · 0.76
test_retry_otherMethod · 0.76
test_exhaustedMethod · 0.64