Skip to content

Commit e698f67

Browse files
committed
reformat
1 parent e505bb5 commit e698f67

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

redis/asyncio/sentinel.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,7 @@ def cleanup(self, **options):
234234
"""
235235
Remove the SCAN ITER family command's request id from the dictionary
236236
"""
237-
self._iter_req_id_to_replica_address.pop(
238-
options.get("iter_req_id", None), None
239-
)
237+
self._iter_req_id_to_replica_address.pop(options.get("iter_req_id", None), None)
240238

241239
async def get_connection(
242240
self, command_name: str, *keys: Any, **options: Any

redis/sentinel.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ def _connect_retry(self, same_address: bool = False):
6363

6464
def connect(self):
6565
return self.retry.call_with_retry(
66-
lambda: self._connect_retry(),
67-
lambda error: None
66+
lambda: self._connect_retry(), lambda error: None
6867
)
6968

7069
def connect_to_same_address(self):
@@ -73,8 +72,7 @@ def connect_to_same_address(self):
7372
it just connects to the same address of the connection object.
7473
"""
7574
return self.retry.call_with_retry(
76-
lambda: self._connect_retry(same_address=True),
77-
lambda error: None
75+
lambda: self._connect_retry(same_address=True), lambda error: None
7876
)
7977

8078
def connect_to_address(self, address):
@@ -269,9 +267,7 @@ def cleanup(self, **options):
269267
"""
270268
Remove the SCAN ITER family command's request id from the dictionary
271269
"""
272-
self._iter_req_id_to_replica_address.pop(
273-
options.get("iter_req_id", None), None
274-
)
270+
self._iter_req_id_to_replica_address.pop(options.get("iter_req_id", None), None)
275271

276272
def get_connection(
277273
self, command_name: str, *keys: Any, **options: Any

0 commit comments

Comments
 (0)