summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2016-05-13 19:35:28 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2016-05-13 19:35:28 (GMT)
commit7657f6ba218aa59ee085f2001dc44247f2fd0d4c (patch)
tree0982bab9284b9c1eff4e30b991e1a2feb0757ffa /Lib/asyncio
parentd76c7c2bed3a6a3e840323647488ebf984914e4f (diff)
downloadcpython-7657f6ba218aa59ee085f2001dc44247f2fd0d4c.zip
cpython-7657f6ba218aa59ee085f2001dc44247f2fd0d4c.tar.gz
cpython-7657f6ba218aa59ee085f2001dc44247f2fd0d4c.tar.bz2
Issue #26848: Fix asyncio/subprocess.communicate() to handle empty input.
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/subprocess.py b/Lib/asyncio/subprocess.py
index ead4039..b2f5304 100644
--- a/Lib/asyncio/subprocess.py
+++ b/Lib/asyncio/subprocess.py
@@ -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()