summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-09-05 15:11:12 (GMT)
committerGitHub <noreply@github.com>2023-09-05 15:11:12 (GMT)
commitad1d6a1c20c7bd3e880c9af7251e6f39ff0e62a9 (patch)
treeb09beecd48431ffaf9af7d4b0e533e644173e1d8 /Lib/asyncio
parent1e0d62793a84001e92f1c80b511d3a212b435acc (diff)
downloadcpython-ad1d6a1c20c7bd3e880c9af7251e6f39ff0e62a9.zip
cpython-ad1d6a1c20c7bd3e880c9af7251e6f39ff0e62a9.tar.gz
cpython-ad1d6a1c20c7bd3e880c9af7251e6f39ff0e62a9.tar.bz2
gh-108903: Remove unneeded `lambda`s from `asyncio` (GH-108904)
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/sslproto.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py
index 488e17d..3eb65a8 100644
--- a/Lib/asyncio/sslproto.py
+++ b/Lib/asyncio/sslproto.py
@@ -539,7 +539,7 @@ class SSLProtocol(protocols.BufferedProtocol):
# start handshake timeout count down
self._handshake_timeout_handle = \
self._loop.call_later(self._ssl_handshake_timeout,
- lambda: self._check_handshake_timeout())
+ self._check_handshake_timeout)
self._do_handshake()
@@ -619,7 +619,7 @@ class SSLProtocol(protocols.BufferedProtocol):
self._set_state(SSLProtocolState.FLUSHING)
self._shutdown_timeout_handle = self._loop.call_later(
self._ssl_shutdown_timeout,
- lambda: self._check_shutdown_timeout()
+ self._check_shutdown_timeout
)
self._do_flush()
@@ -758,7 +758,7 @@ class SSLProtocol(protocols.BufferedProtocol):
else:
break
else:
- self._loop.call_soon(lambda: self._do_read())
+ self._loop.call_soon(self._do_read)
except SSLAgainErrors:
pass
if offset > 0: