From 7e222f411cda575c336eaabbc4aa4d5b8addab89 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 15 Jan 2015 13:16:27 +0100 Subject: [PATCH] SSLProtocol: set the _transport attribute in the constructor --- Lib/asyncio/sslproto.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py index c7fb4e7c60f..117dc565b6c 100644 --- a/Lib/asyncio/sslproto.py +++ b/Lib/asyncio/sslproto.py @@ -417,6 +417,7 @@ class SSLProtocol(protocols.Protocol): self._session_established = False self._in_handshake = False self._in_shutdown = False + self._transport = None def connection_made(self, transport): """Called when the low-level connection is made.