[Python-checkins] cpython (2.7): issue26083: Avoid duplicate error message string from a subprocess exec
gregory.p.smith
python-checkins at python.org
Sat May 28 15:24:52 EDT 2016
https://hg.python.org/cpython/rev/184dfef08a93
changeset: 101542:184dfef08a93
branch: 2.7
parent: 101536:f66c30f66235
user: Gregory P. Smith <greg at krypto.org> [Google Inc.]
date: Sat May 28 19:24:14 2016 +0000
summary:
issue26083: Avoid duplicate error message string from a subprocess exec failure.Avoid a duplicate error message string from a subprocess exec failure.
:P
files:
Lib/subprocess.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -1317,7 +1317,7 @@
# 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)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list