summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>2016-05-28 19:24:14 (GMT)
committerGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>2016-05-28 19:24:14 (GMT)
commit253c0bff9aaabaf455534d65eeaefee6d7967ef9 (patch)
tree2b5e1da21751afff4f4eb3766be9f94857f6a52b /Lib/subprocess.py
parentcb0fc27f207e1e0ace57b8ceac1391bd4e79ad46 (diff)
downloadcpython-253c0bff9aaabaf455534d65eeaefee6d7967ef9.zip
cpython-253c0bff9aaabaf455534d65eeaefee6d7967ef9.tar.gz
cpython-253c0bff9aaabaf455534d65eeaefee6d7967ef9.tar.bz2
issue26083: Avoid duplicate error message string from a subprocess exec failure.Avoid a duplicate error message string from a subprocess exec failure.
:P
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 70d129b3..187566b 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -1317,7 +1317,7 @@ class Popen(object):
# Wait for exec to fail or succeed; possibly raising exception
data = _eintr_retry_call(os.read, errpipe_read, 1048576)
- pickle_bits = [data]
+ pickle_bits = []
while data:
pickle_bits.append(data)
data = _eintr_retry_call(os.read, errpipe_read, 1048576)