issue26083: Avoid duplicate error message string from a subprocess exec failure.Avoid a duplicate error message string from a subprocess exec failure.

:P
This commit is contained in:
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) 2016-05-28 19:24:14 +00:00
parent cb0fc27f20
commit 253c0bff9a
1 changed files with 1 additions and 1 deletions

View File

@ -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)