From 6b400bc54499a7f20f15bb459025101e8e52f098 Mon Sep 17 00:00:00 2001 From: Raymond Wiker Date: Fri, 8 Nov 2024 15:34:02 +0100 Subject: [PATCH] Black formatting. --- src/sumo/wrapper/sumo_client.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/sumo/wrapper/sumo_client.py b/src/sumo/wrapper/sumo_client.py index fbdf5cb..5243f7c 100644 --- a/src/sumo/wrapper/sumo_client.py +++ b/src/sumo/wrapper/sumo_client.py @@ -199,8 +199,13 @@ def get(self, path: str, params: dict = None) -> dict: headers.update(self.auth.get_authorization()) follow_redirects = False - 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$", - path) is not None: + 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$", + path, + ) + is not None + ): follow_redirects = True def _get(): @@ -431,8 +436,13 @@ async def get_async(self, path: str, params: dict = None): headers.update(self.auth.get_authorization()) follow_redirects = False - 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$", - path) is not None: + 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$", + path, + ) + is not None + ): follow_redirects = True async def _get(): @@ -440,7 +450,7 @@ async def _get(): f"{self.base_url}{path}", params=params, headers=headers, - follow_redirects = follow_redirects, + follow_redirects=follow_redirects, timeout=self._timeout, )