summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/sslproto.py
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2017-04-25 01:57:18 (GMT)
committerGitHub <noreply@github.com>2017-04-25 01:57:18 (GMT)
commit3e2ad8ec61a322370a6fbdfb2209cf74546f5e08 (patch)
tree0285efcc8b8d9b7215e4b8dbe106960187b1e628 /Lib/asyncio/sslproto.py
parentf6448e5d65c349576df6e83b8324b9c208e77615 (diff)
downloadcpython-3e2ad8ec61a322370a6fbdfb2209cf74546f5e08.zip
cpython-3e2ad8ec61a322370a6fbdfb2209cf74546f5e08.tar.gz
cpython-3e2ad8ec61a322370a6fbdfb2209cf74546f5e08.tar.bz2
bpo-29617: Remove Python 3.3 support from asyncio (GH-232)
Diffstat (limited to 'Lib/asyncio/sslproto.py')
-rw-r--r--Lib/asyncio/sslproto.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py
index ab7ff0b..61d31a3 100644
--- a/Lib/asyncio/sslproto.py
+++ b/Lib/asyncio/sslproto.py
@@ -6,7 +6,6 @@ except ImportError: # pragma: no cover
ssl = None
from . import base_events
-from . import compat
from . import protocols
from . import transports
from .log import logger
@@ -325,15 +324,11 @@ class _SSLProtocolTransport(transports._FlowControlMixin,
self._closed = True
self._ssl_protocol._start_shutdown()
- # 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 compat.PY34:
- def __del__(self):
- if not self._closed:
- warnings.warn("unclosed transport %r" % self, ResourceWarning,
- source=self)
- self.close()
+ def __del__(self):
+ if not self._closed:
+ warnings.warn("unclosed transport %r" % self, ResourceWarning,
+ source=self)
+ self.close()
def pause_reading(self):
"""Pause the receiving end.