Skip to content

Commit 6b400bc

Browse files
committed
Black formatting.
1 parent 9721c53 commit 6b400bc

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

src/sumo/wrapper/sumo_client.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,13 @@ def get(self, path: str, params: dict = None) -> dict:
199199
headers.update(self.auth.get_authorization())
200200

201201
follow_redirects = False
202-
if re.match(r"^/objects\('[0-9a-fA-F-]{8}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{12}'\)/blob$",
203-
path) is not None:
202+
if (
203+
re.match(
204+
r"^/objects\('[0-9a-fA-F-]{8}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{12}'\)/blob$",
205+
path,
206+
)
207+
is not None
208+
):
204209
follow_redirects = True
205210

206211
def _get():
@@ -431,16 +436,21 @@ async def get_async(self, path: str, params: dict = None):
431436
headers.update(self.auth.get_authorization())
432437

433438
follow_redirects = False
434-
if re.match(r"^/objects\('[0-9a-fA-F-]{8}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{12}'\)/blob$",
435-
path) is not None:
439+
if (
440+
re.match(
441+
r"^/objects\('[0-9a-fA-F-]{8}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{12}'\)/blob$",
442+
path,
443+
)
444+
is not None
445+
):
436446
follow_redirects = True
437447

438448
async def _get():
439449
return await self._async_client.get(
440450
f"{self.base_url}{path}",
441451
params=params,
442452
headers=headers,
443-
follow_redirects = follow_redirects,
453+
follow_redirects=follow_redirects,
444454
timeout=self._timeout,
445455
)
446456

0 commit comments

Comments
 (0)