From 253c0bff9aaabaf455534d65eeaefee6d7967ef9 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)" Date: Sat, 28 May 2016 19:24:14 +0000 Subject: [PATCH] issue26083: Avoid duplicate error message string from a subprocess exec failure.Avoid a duplicate error message string from a subprocess exec failure. :P --- Lib/subprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 70d129b3a6c..187566bc05d 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)