From 190e78603a4ce58a2f248fdf8a3472fa1fc6c064 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 29 Jan 2015 17:32:39 +0100 Subject: Python issue #23243: On Python 3.4 and newer, emit a ResourceWarning when an event loop or a transport is not explicitly closed --- asyncio/futures.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'asyncio/futures.py') diff --git a/asyncio/futures.py b/asyncio/futures.py index 19212a9..2c741fd 100644 --- a/asyncio/futures.py +++ b/asyncio/futures.py @@ -195,9 +195,9 @@ class Future: info = self._repr_info() return '<%s %s>' % (self.__class__.__name__, ' '.join(info)) - # On Python 3.3 or older, objects with a destructor part of a reference - # cycle are never destroyed. It's not more the case on Python 3.4 thanks to - # the PEP 442. + # On Python 3.3 and older, objects with a destructor part of a reference + # cycle are never destroyed. It's not more the case on Python 3.4 thanks + # to the PEP 442. if _PY34: def __del__(self): if not self._log_traceback: -- cgit v1.2.1