]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 8 Jun 2019 15:24:10 +0000 (08:24 -0700)
committerGitHub <noreply@github.com>
Sat, 8 Jun 2019 15:24:10 +0000 (08:24 -0700)
commit10b4fd98142edef6ab7b034e10ae5c9551043999
treef0c4531309cf697797a682343bc5bd08ad16b38a
parent6692d35317a45905a043dccae3940ea5d5d84352
bpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727)

Fix an unintended ValueError from :func:`subprocess.run` when checking for
conflicting `input` and `stdin` or `capture_output` and `stdout` or `stderr` args
when they were explicitly provided but with `None` values within a passed in
`**kwargs` dict rather than as passed directly by name.
(cherry picked from commit 8cc605acdda5aff250ab4c9b524a7560f90ca9f3)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
Lib/subprocess.py
Misc/NEWS.d/next/Library/2019-06-08-16-03-19.bpo-34886.Ov-pc9.rst [new file with mode: 0644]