summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-01 01:18:02 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-02-01 01:18:02 +0100
commitc68a68e69e695024b18be716dd50558ed3e691e9 (patch)
tree4ab98ae70c73ad991025f3ae6d4fcbb6c3175a6c
parentd7cc905b5b42ac6e0a7f4e1de6607d74fc8d741b (diff)
downloadtrollius-git-c68a68e69e695024b18be716dd50558ed3e691e9.tar.gz
asyncio.subprocess: export also PIPE, STDOUT and DEVNULL symbols
-rw-r--r--asyncio/__init__.py4
-rw-r--r--asyncio/subprocess.py3
2 files changed, 4 insertions, 3 deletions
diff --git a/asyncio/__init__.py b/asyncio/__init__.py
index 3df2f80..e5a4753 100644
--- a/asyncio/__init__.py
+++ b/asyncio/__init__.py
@@ -24,7 +24,7 @@ from .locks import *
from .protocols import *
from .queues import *
from .streams import *
-from .subprocess import *
+from .subprocess import create_subprocess_exec, create_subprocess_shell
from .tasks import *
from .transports import *
@@ -40,6 +40,6 @@ __all__ = (events.__all__ +
protocols.__all__ +
queues.__all__ +
streams.__all__ +
- subprocess.__all__ +
+ ['create_subprocess_exec', 'create_subprocess_shell'] +
tasks.__all__ +
transports.__all__)
diff --git a/asyncio/subprocess.py b/asyncio/subprocess.py
index 6c4ded3..18b8b0a 100644
--- a/asyncio/subprocess.py
+++ b/asyncio/subprocess.py
@@ -1,4 +1,5 @@
-__all__ = ['create_subprocess_exec', 'create_subprocess_shell']
+__all__ = ['create_subprocess_exec', 'create_subprocess_shell',
+ 'PIPE' 'STDOUT', 'DEVNULL']
import collections
import subprocess