Skip to content

Commit 1cf2cf7

Browse files
committed
Apply ruff format
1 parent d112833 commit 1cf2cf7

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

httpcore/_async/http_proxy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ async def handle_async_request(self, request: Request) -> Response:
309309

310310
kwargs = {
311311
"ssl_context": ssl_context,
312-
"server_hostname": self._remote_origin.host.decode("ascii").rstrip("."),
312+
"server_hostname": self._remote_origin.host.decode("ascii").rstrip(
313+
"."
314+
),
313315
"timeout": timeout,
314316
}
315317
async with Trace("start_tls", logger, request, kwargs) as trace:

httpcore/_sync/http_proxy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ def handle_request(self, request: Request) -> Response:
309309

310310
kwargs = {
311311
"ssl_context": ssl_context,
312-
"server_hostname": self._remote_origin.host.decode("ascii").rstrip("."),
312+
"server_hostname": self._remote_origin.host.decode("ascii").rstrip(
313+
"."
314+
),
313315
"timeout": timeout,
314316
}
315317
with Trace("start_tls", logger, request, kwargs) as trace:

0 commit comments

Comments
 (0)