diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-12-25 05:18:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-25 05:18:13 (GMT) |
commit | d5aadb28545fd15cd3517b604a8c7a520abd09c6 (patch) | |
tree | c9ac8e4e3804418b013427092136d55df3c32470 /Misc | |
parent | efd64c8ea0fed1c13839cec0feea450820da34f8 (diff) | |
download | cpython-d5aadb28545fd15cd3517b604a8c7a520abd09c6.zip cpython-d5aadb28545fd15cd3517b604a8c7a520abd09c6.tar.gz cpython-d5aadb28545fd15cd3517b604a8c7a520abd09c6.tar.bz2 |
bpo-42388: Fix subprocess.check_output input=None when text=True (GH-23467)
When the modern text= spelling of the universal_newlines= parameter was added
for Python 3.7, check_output's special case around input=None was overlooked.
So it behaved differently with universal_newlines=True vs text=True. This
reconciles the behavior to be consistent and adds a test to guarantee it.
Also clarifies the existing check_output documentation.
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
(cherry picked from commit 64abf373444944a240274a9b6d66d1cb01ecfcdd)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-11-22-11-22-28.bpo-42388.LMgM6B.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-11-22-11-22-28.bpo-42388.LMgM6B.rst b/Misc/NEWS.d/next/Library/2020-11-22-11-22-28.bpo-42388.LMgM6B.rst new file mode 100644 index 0000000..1b19247 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-11-22-11-22-28.bpo-42388.LMgM6B.rst @@ -0,0 +1,2 @@ +Fix subprocess.check_output(..., input=None) behavior when text=True to be +consistent with that of the documentation and universal_newlines=True. |