diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-29 17:58:59 +0100 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-29 17:58:59 +0100 |
| commit | 8dc2e2c8cdcfddf86e017c548a428e62dff6b462 (patch) | |
| tree | 3f7357e65983ceb2e4765705aac4b04e6756fd8b /asyncio | |
| parent | 3ac69cc9750b29c29fdd02d574e85f7f07d1918c (diff) | |
| download | trollius-git-8dc2e2c8cdcfddf86e017c548a428e62dff6b462.tar.gz | |
Export PIPE, STDOUT and DEVNULL constants in asyncio.subprocess
Diffstat (limited to 'asyncio')
| -rw-r--r-- | asyncio/subprocess.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/asyncio/subprocess.py b/asyncio/subprocess.py index 471f118..7471f2c 100644 --- a/asyncio/subprocess.py +++ b/asyncio/subprocess.py @@ -1,6 +1,7 @@ __all__ = ['create_subprocess_exec', 'create_subprocess_shell'] import collections +import subprocess from . import events from . import futures @@ -9,6 +10,11 @@ from . import streams from . import tasks +PIPE = subprocess.PIPE +STDOUT = subprocess.STDOUT +DEVNULL = subprocess.DEVNULL + + class SubprocessStreamProtocol(streams.FlowControlMixin, protocols.SubprocessProtocol): """Like StreamReaderProtocol, but for a subprocess.""" |
