]> granicus.if.org Git - python/commitdiff
issue26083: Avoid duplicate error message string from a subprocess exec failure.Avoid...
authorGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>
Sat, 28 May 2016 19:24:14 +0000 (19:24 +0000)
committerGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>
Sat, 28 May 2016 19:24:14 +0000 (19:24 +0000)
:P

Lib/subprocess.py

index 70d129b3a6c08fcff23c3a000a213c0bbfefef16..187566bc05d746a698d0baa89b41357b91a09b8a 100644 (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)