Skip to content

Commit 5a4d420

Browse files
author
eyeonyou
committed
style: format max-line
1 parent b42b35a commit 5a4d420

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/mcp/client/sse.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,15 @@ async def sse_reader(
6262
logger.debug(f"Received SSE event: {sse.event}")
6363
match sse.event:
6464
case "endpoint":
65-
base_path = re.search(r"https?://[^/]+/(.+)/sse$", url)
66-
base_path = base_path.group(1) if base_path else ""
67-
endpoint_url = urljoin(url, base_path + sse.data)
65+
base_path = re.search(
66+
r"https?://[^/]+/(.+)/sse$", url
67+
)
68+
base_path = (
69+
base_path.group(1) if base_path else ""
70+
)
71+
endpoint_url = urljoin(
72+
url, base_path + sse.data
73+
)
6874
logger.info(
6975
f"Received endpoint URL: {endpoint_url}"
7076
)

0 commit comments

Comments
 (0)