summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/subprocess.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-11 10:44:56 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-11 10:44:56 (GMT)
commit4e8d2f25e23d1da33d414074485da8e374d98495 (patch)
treeaabc74c6228c42b26446857ce1db78028e6e4d32 /Lib/asyncio/subprocess.py
parenta125497ea302aff937a5c59f98c39dba4f1ab59b (diff)
downloadcpython-4e8d2f25e23d1da33d414074485da8e374d98495.zip
cpython-4e8d2f25e23d1da33d414074485da8e374d98495.tar.gz
cpython-4e8d2f25e23d1da33d414074485da8e374d98495.tar.bz2
asyncio, Tulip issue 130: Add more checks on subprocess_exec/subprocess_shell
parameters
Diffstat (limited to 'Lib/asyncio/subprocess.py')
-rw-r--r--Lib/asyncio/subprocess.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/asyncio/subprocess.py b/Lib/asyncio/subprocess.py
index 848d64f..8d1a407 100644
--- a/Lib/asyncio/subprocess.py
+++ b/Lib/asyncio/subprocess.py
@@ -180,7 +180,7 @@ def create_subprocess_shell(cmd, stdin=None, stdout=None, stderr=None,
return Process(transport, protocol, loop)
@tasks.coroutine
-def create_subprocess_exec(*args, stdin=None, stdout=None, stderr=None,
+def create_subprocess_exec(program, *args, stdin=None, stdout=None, stderr=None,
loop=None, limit=streams._DEFAULT_LIMIT, **kwds):
if loop is None:
loop = events.get_event_loop()
@@ -188,7 +188,8 @@ def create_subprocess_exec(*args, stdin=None, stdout=None, stderr=None,
loop=loop)
transport, protocol = yield from loop.subprocess_exec(
protocol_factory,
- *args, stdin=stdin, stdout=stdout,
+ program, *args,
+ stdin=stdin, stdout=stdout,
stderr=stderr, **kwds)
yield from protocol.waiter
return Process(transport, protocol, loop)