From: Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) Date: Sat, 28 May 2016 19:24:14 +0000 (+0000) Subject: issue26083: Avoid duplicate error message string from a subprocess exec failure.Avoid... X-Git-Tag: v2.7.12rc1~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=253c0bff9aaabaf455534d65eeaefee6d7967ef9;p=thirdparty%2FPython%2Fcpython.git issue26083: Avoid duplicate error message string from a subprocess exec failure.Avoid a duplicate error message string from a subprocess exec failure. :P --- diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 70d129b3a6c0..187566bc05d7 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)