Skip to content

Commit a214db0

Browse files
gh-132307: Remove unnecessary check in asyncio/base_events.py (#132324)
1 parent 1557da6 commit a214db0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/asyncio/base_events.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1666,8 +1666,7 @@ async def connect_accepted_socket(
16661666
raise ValueError(
16671667
'ssl_shutdown_timeout is only meaningful with ssl')
16681668

1669-
if sock is not None:
1670-
_check_ssl_socket(sock)
1669+
_check_ssl_socket(sock)
16711670

16721671
transport, protocol = await self._create_connection_transport(
16731672
sock, protocol_factory, ssl, '', server_side=True,

0 commit comments

Comments
 (0)