]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43423 Fix IndexError in subprocess _communicate function (GH-24777)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 12 Mar 2021 01:56:35 +0000 (17:56 -0800)
committerGitHub <noreply@github.com>
Fri, 12 Mar 2021 01:56:35 +0000 (17:56 -0800)
commitad83fde75463dad2df878ff264f52436eb48bc6b
treebf20afe531a3433061f691c56d8b3454fdfef014
parent531f2ebd60a662111c78107935d249d3d52f9a4f
bpo-43423 Fix IndexError in subprocess _communicate function (GH-24777)

Check to make sure stdout and stderr are not empty before selecting an item from them in Windows subprocess._communicate.

Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit b4fc44bb2d209182390b4f9fdf074a46b0165a2f)

Co-authored-by: Chris Griffith <chris@cdgriffith.com>
Lib/subprocess.py
Misc/NEWS.d/next/Library/2021-03-11-15-44-18.bpo-43423.rRomRD.rst [new file with mode: 0644]