From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Thu, 10 Apr 2025 15:41:32 +0000 (+0100) Subject: gh-132307: Remove unnecessary check in `asyncio/base_events.py` (#132324) X-Git-Tag: v3.14.0b1~539 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a214db0c5406254d293f33622ce2cbd8233b52a5;p=thirdparty%2FPython%2Fcpython.git gh-132307: Remove unnecessary check in `asyncio/base_events.py` (#132324) --- diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index ff63639638c1..7b4e92aed682 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,