summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/sslproto.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-08-04 19:57:05 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-08-04 19:57:05 (GMT)
commit4451cbed2223af639def3350d2e6451a40dc7b60 (patch)
tree17926d9df9352bad14b2d04a778635269dafae1d /Lib/asyncio/sslproto.py
parentcb69843587369156487da26fa4a8148630785865 (diff)
parent78c89eb0aceeeaf67f537b8f6df8a3640acf4151 (diff)
downloadcpython-4451cbed2223af639def3350d2e6451a40dc7b60.zip
cpython-4451cbed2223af639def3350d2e6451a40dc7b60.tar.gz
cpython-4451cbed2223af639def3350d2e6451a40dc7b60.tar.bz2
Merge 3.5
Diffstat (limited to 'Lib/asyncio/sslproto.py')
-rw-r--r--Lib/asyncio/sslproto.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py
index 235855e..e566946 100644
--- a/Lib/asyncio/sslproto.py
+++ b/Lib/asyncio/sslproto.py
@@ -1,11 +1,11 @@
import collections
-import sys
import warnings
try:
import ssl
except ImportError: # pragma: no cover
ssl = None
+from . import compat
from . import protocols
from . import transports
from .log import logger
@@ -317,7 +317,7 @@ class _SSLProtocolTransport(transports._FlowControlMixin,
# 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 sys.version_info >= (3, 4):
+ if compat.PY34:
def __del__(self):
if not self._closed:
warnings.warn("unclosed transport %r" % self, ResourceWarning)