asyncio.create_subprocess_exec defaults stdin to None

This commit is contained in:
Michael Hudson-Doyle 2019-12-13 11:44:12 +13:00
parent 2ad6f0b2ee
commit 05a61544fb
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ async def arun_command(cmd, *, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
if input is None:
kw['stdin'] = subprocess.DEVNULL
else:
kw['stdin'] = subprocess.PIPE
input = input.encode(encoding)
log.debug("arun_command called: %s", cmd)
proc = await asyncio.create_subprocess_exec(