Skip to content

Commit 82920cb

Browse files
committed
Code style
Signed-off-by: Levko Kravets <[email protected]>
1 parent c603d7f commit 82920cb

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/databricks/sql/auth/thrift_http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(
6161
self.path = parsed.path
6262
if parsed.query:
6363
self.path += "?%s" % parsed.query
64-
64+
6565
if proxies is None:
6666
proxies = urllib.request.getproxies()
6767
try:

src/databricks/sql/client.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,12 @@ def _handle_staging_put(
653653
raise Error("Cannot perform PUT without specifying a local_file")
654654

655655
with open(local_file, "rb") as fh:
656-
r = requests.put(url=presigned_url, data=fh, headers=headers, proxies=self.connection.proxies)
656+
r = requests.put(
657+
url=presigned_url,
658+
data=fh,
659+
headers=headers,
660+
proxies=self.connection.proxies,
661+
)
657662

658663
# fmt: off
659664
# Design borrowed from: https://stackoverflow.com/a/2342589/5093960
@@ -687,7 +692,9 @@ def _handle_staging_get(
687692
if local_file is None:
688693
raise Error("Cannot perform GET without specifying a local_file")
689694

690-
r = requests.get(url=presigned_url, headers=headers, proxies=self.connection.proxies)
695+
r = requests.get(
696+
url=presigned_url, headers=headers, proxies=self.connection.proxies
697+
)
691698

692699
# response.ok verifies the status code is not between 400-600.
693700
# Any 2xx or 3xx will evaluate r.ok == True
@@ -702,7 +709,9 @@ def _handle_staging_get(
702709
def _handle_staging_remove(self, presigned_url: str, headers: dict = None):
703710
"""Make an HTTP DELETE request to the presigned_url"""
704711

705-
r = requests.delete(url=presigned_url, headers=headers, proxies=self.connection.proxies)
712+
r = requests.delete(
713+
url=presigned_url, headers=headers, proxies=self.connection.proxies
714+
)
706715

707716
if not r.ok:
708717
raise Error(

0 commit comments

Comments
 (0)