diff options
author | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org> | 2016-05-28 19:24:14 (GMT) |
---|---|---|
committer | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org> | 2016-05-28 19:24:14 (GMT) |
commit | 253c0bff9aaabaf455534d65eeaefee6d7967ef9 (patch) | |
tree | 2b5e1da21751afff4f4eb3766be9f94857f6a52b /Lib/subprocess.py | |
parent | cb0fc27f207e1e0ace57b8ceac1391bd4e79ad46 (diff) | |
download | cpython-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.py | 2 |
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) |