diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-08-04 19:56:53 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-08-04 19:56:53 (GMT) |
commit | 78c89eb0aceeeaf67f537b8f6df8a3640acf4151 (patch) | |
tree | 557c450e141560bed0f3bb15b637f0252e1ce894 /Lib/asyncio/selector_events.py | |
parent | 3563ccc9a0f9fc829a6a45a0a1717f03ca234e03 (diff) | |
parent | 2a8911c0b7176aec2791460c9beac2bf22daa725 (diff) | |
download | cpython-78c89eb0aceeeaf67f537b8f6df8a3640acf4151.zip cpython-78c89eb0aceeeaf67f537b8f6df8a3640acf4151.tar.gz cpython-78c89eb0aceeeaf67f537b8f6df8a3640acf4151.tar.bz2 |
Merge 3.4
Diffstat (limited to 'Lib/asyncio/selector_events.py')
-rw-r--r-- | Lib/asyncio/selector_events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py index 7c5b9b5..4a99658 100644 --- a/Lib/asyncio/selector_events.py +++ b/Lib/asyncio/selector_events.py @@ -10,7 +10,6 @@ import collections import errno import functools import socket -import sys import warnings try: import ssl @@ -18,6 +17,7 @@ except ImportError: # pragma: no cover ssl = None from . import base_events +from . import compat from . import constants from . import events from . import futures @@ -568,7 +568,7 @@ class _SelectorTransport(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 self._sock is not None: warnings.warn("unclosed transport %r" % self, ResourceWarning) |