summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/base_subprocess.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-08-04 19:56:53 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-08-04 19:56:53 (GMT)
commit78c89eb0aceeeaf67f537b8f6df8a3640acf4151 (patch)
tree557c450e141560bed0f3bb15b637f0252e1ce894 /Lib/asyncio/base_subprocess.py
parent3563ccc9a0f9fc829a6a45a0a1717f03ca234e03 (diff)
parent2a8911c0b7176aec2791460c9beac2bf22daa725 (diff)
downloadcpython-78c89eb0aceeeaf67f537b8f6df8a3640acf4151.zip
cpython-78c89eb0aceeeaf67f537b8f6df8a3640acf4151.tar.gz
cpython-78c89eb0aceeeaf67f537b8f6df8a3640acf4151.tar.bz2
Merge 3.4
Diffstat (limited to 'Lib/asyncio/base_subprocess.py')
-rw-r--r--Lib/asyncio/base_subprocess.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/base_subprocess.py b/Lib/asyncio/base_subprocess.py
index a6971b1..6851cd2 100644
--- a/Lib/asyncio/base_subprocess.py
+++ b/Lib/asyncio/base_subprocess.py
@@ -1,8 +1,8 @@
import collections
import subprocess
-import sys
import warnings
+from . import compat
from . import futures
from . import protocols
from . import transports
@@ -116,7 +116,7 @@ class BaseSubprocessTransport(transports.SubprocessTransport):
# 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)