https://github.com/python/cpython/commit/a214db0c5406254d293f33622ce2cbd8233b52a5 commit: a214db0c5406254d293f33622ce2cbd8233b52a5 branch: main author: Stan Ulbrych <89152624+stanfromirel...@users.noreply.github.com> committer: kumaraditya303 <kumaradi...@python.org> date: 2025-04-10T15:41:32Z summary:
gh-132307: Remove unnecessary check in `asyncio/base_events.py` (#132324) files: M Lib/asyncio/base_events.py diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index ff63639638c13f..7b4e92aed682d5 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -1666,8 +1666,7 @@ async def connect_accepted_socket( 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, _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com