summaryrefslogtreecommitdiff
path: root/Lib/asyncio/sslproto.py
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-09-11 21:11:19 -0400
committerYury Selivanov <yury@magic.io>2016-09-11 21:11:19 -0400
commit77a658259e1f2c13e1dc8951f3489e216fe1ba20 (patch)
tree8ce0b368d32226452c38f7ccd52e3e20b7e5ec26 /Lib/asyncio/sslproto.py
parentea91d528b4f41c58d96e3b6b6a97ccf3ecfc0faa (diff)
parent3d4d23ce3dd6ead31a3686b0afe491ecd81fdb1e (diff)
downloadcpython-77a658259e1f2c13e1dc8951f3489e216fe1ba20.tar.gz
Merge 3.5 (asyncio)
Diffstat (limited to 'Lib/asyncio/sslproto.py')
-rw-r--r--Lib/asyncio/sslproto.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py
index afe85a1438..92d3c4c909 100644
--- a/Lib/asyncio/sslproto.py
+++ b/Lib/asyncio/sslproto.py
@@ -331,7 +331,8 @@ class _SSLProtocolTransport(transports._FlowControlMixin,
if compat.PY34:
def __del__(self):
if not self._closed:
- warnings.warn("unclosed transport %r" % self, ResourceWarning)
+ warnings.warn("unclosed transport %r" % self, ResourceWarning,
+ source=self)
self.close()
def pause_reading(self):