Skip to content

Commit 2dd4755

Browse files
Fix api client by switching to replacements for deprecated urllib3 methods (#637)
1 parent 5c38791 commit 2dd4755

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

databricks_cli/sdk/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __init__(self, user=None, password=None, host=None, token=None,
103103
total=6,
104104
backoff_factor=1,
105105
status_forcelist=[429],
106-
method_whitelist=set({'POST'}) | set(Retry.DEFAULT_METHOD_WHITELIST),
106+
allowed_methods=set({'POST'}) | set(Retry.DEFAULT_ALLOWED_METHODS),
107107
respect_retry_after_header=True,
108108
raise_on_status=False # return original response when retries have been exhausted
109109
)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ requests>=2.17.3
66
tabulate>=0.7.7
77
six>=1.10.0
88
configparser>=0.3.5;python_version < "3.6"
9+
urllib3>=1.26.7,<2.0.0

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
'tabulate>=0.7.7',
4343
'six>=1.10.0',
4444
'configparser>=0.3.5;python_version < "3.6"',
45+
'urllib3>=1.26.7,<2.0.0'
4546
],
4647
entry_points='''
4748
[console_scripts]

0 commit comments

Comments
 (0)