From a214db0c5406254d293f33622ce2cbd8233b52a5 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Thu, 10 Apr 2025 16:41:32 +0100 Subject: gh-132307: Remove unnecessary check in `asyncio/base_events.py` (#132324) --- Lib/asyncio/base_events.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index ff63639..7b4e92a 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -1666,8 +1666,7 @@ class BaseEventLoop(events.AbstractEventLoop): raise ValueError( 'ssl_shutdown_timeout is only meaningful with ssl') - if sock is not None: - _check_ssl_socket(sock) + _check_ssl_socket(sock) transport, protocol = await self._create_connection_transport( sock, protocol_factory, ssl, '', server_side=True, -- cgit v0.12