]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-31756: subprocess.run should alias universal_newlines to text (#4049)
authorandyclegg <andy2.0@gmail.com>
Mon, 23 Oct 2017 02:01:19 +0000 (03:01 +0100)
committerGregory P. Smith <greg@krypto.org>
Mon, 23 Oct 2017 02:01:19 +0000 (19:01 -0700)
commit7fed7bd8bb628f0f09c6011871a4ce68afb41b18
treea89c99e634133cae2dc33671182f8f4ae0723226
parentae3087c6382011c47db82fea4d05f8bbf514265d
bpo-31756: subprocess.run should alias universal_newlines to text (#4049)

Improve human friendliness of the Popen API: Add text=False as a
keyword-only argument to subprocess.Popen along with a Popen
attribute .text_mode and set this based on the
encoding/errors/universal_newlines/text arguments.

The universal_newlines parameter and attribute are maintained for
backwards compatibility.
Doc/library/subprocess.rst
Lib/subprocess.py
Lib/test/test_subprocess.py
Misc/NEWS.d/next/Library/2017-10-20-12-57-52.bpo-31756.IxCvGB.rst [new file with mode: 0644]