Issue #26848: Fix asyncio/subprocess.communicate() to handle empty input.

This commit is contained in:
Yury Selivanov 2016-05-13 15:35:28 -04:00
parent d76c7c2bed
commit 7657f6ba21
3 changed files with 23 additions and 1 deletions

View file

@ -166,7 +166,7 @@ class Process:
@coroutine
def communicate(self, input=None):
if input:
if input is not None:
stdin = self._feed_stdin(input)
else:
stdin = self._noop()