https://github.com/python/cpython/commit/a214db0c5406254d293f33622ce2cbd8233b52a5
commit: a214db0c5406254d293f33622ce2cbd8233b52a5
branch: main
author: Stan Ulbrych <[email protected]>
committer: kumaraditya303 <[email protected]>
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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]