mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Issue #26848: Fix asyncio/subprocess.communicate() to handle empty input.
This commit is contained in:
parent
d76c7c2bed
commit
7657f6ba21
3 changed files with 23 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue