Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit e4741c1

Browse files
committed
Import urllib3.util.Retry from requests.packages
1 parent ce75776 commit e4741c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cloudant/adapters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"""
1919
from requests.adapters import HTTPAdapter
2020

21-
from urllib3.util import Retry
21+
from requests.packages import urllib3
2222

2323
class Replay429Adapter(HTTPAdapter):
2424
"""
@@ -33,7 +33,7 @@ class Replay429Adapter(HTTPAdapter):
3333
:param float initialBackoff: time in seconds for the first backoff.
3434
"""
3535
def __init__(self, retries=3, initialBackoff=0.25):
36-
super(Replay429Adapter, self).__init__(max_retries=Retry(
36+
super(Replay429Adapter, self).__init__(max_retries=urllib3.util.Retry(
3737
# Configure the number of retries for status codes
3838
total=retries,
3939
# No retries for connect|read errors

0 commit comments

Comments
 (0)