summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-08 11:06:36 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-01-08 11:06:36 (GMT)
commit8d9c145f61d43fb9d43ad43c04744ffd32c93d8c (patch)
tree6dc0120d096bda5e5d9ef7f31d208b9296f7b6a1 /Lib/asyncio
parent84d64a9c027e1f772574af61192def2943d7c8c9 (diff)
downloadcpython-8d9c145f61d43fb9d43ad43c04744ffd32c93d8c.zip
cpython-8d9c145f61d43fb9d43ad43c04744ffd32c93d8c.tar.gz
cpython-8d9c145f61d43fb9d43ad43c04744ffd32c93d8c.tar.bz2
asyncio: _make_ssl_transport: make the waiter parameter optional
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/base_events.py2
-rw-r--r--Lib/asyncio/selector_events.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
index 59f3136..ac885a8 100644
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -201,7 +201,7 @@ class BaseEventLoop(events.AbstractEventLoop):
"""Create socket transport."""
raise NotImplementedError
- def _make_ssl_transport(self, rawsock, protocol, sslcontext, waiter, *,
+ def _make_ssl_transport(self, rawsock, protocol, sslcontext, waiter=None, *,
server_side=False, server_hostname=None,
extra=None, server=None):
"""Create SSL transport."""
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py
index a97709d..2e7364b 100644
--- a/Lib/asyncio/selector_events.py
+++ b/Lib/asyncio/selector_events.py
@@ -55,7 +55,7 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop):
return _SelectorSocketTransport(self, sock, protocol, waiter,
extra, server)
- def _make_ssl_transport(self, rawsock, protocol, sslcontext, waiter, *,
+ def _make_ssl_transport(self, rawsock, protocol, sslcontext, waiter=None, *,
server_side=False, server_hostname=None,
extra=None, server=None):
return _SelectorSslTransport(
@@ -165,7 +165,7 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop):
else:
if sslcontext:
self._make_ssl_transport(
- conn, protocol_factory(), sslcontext, None,
+ conn, protocol_factory(), sslcontext,
server_side=True, extra={'peername': addr}, server=server)
else:
self._make_socket_transport(