diff options
author | Yury Selivanov <yury@magic.io> | 2016-09-11 21:11:19 -0400 |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-09-11 21:11:19 -0400 |
commit | 77a658259e1f2c13e1dc8951f3489e216fe1ba20 (patch) | |
tree | 8ce0b368d32226452c38f7ccd52e3e20b7e5ec26 /Lib/asyncio/sslproto.py | |
parent | ea91d528b4f41c58d96e3b6b6a97ccf3ecfc0faa (diff) | |
parent | 3d4d23ce3dd6ead31a3686b0afe491ecd81fdb1e (diff) | |
download | cpython-77a658259e1f2c13e1dc8951f3489e216fe1ba20.tar.gz |
Merge 3.5 (asyncio)
Diffstat (limited to 'Lib/asyncio/sslproto.py')
-rw-r--r-- | Lib/asyncio/sslproto.py | 3 |
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): |