Skip to content

[3.7] Update subprocess.Popen documentation wrt universal_newlines arg (GH-10337) #10475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions Doc/library/subprocess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ compatibility with older versions, see the :ref:`call-function-trio` section.

.. function:: run(args, *, stdin=None, input=None, stdout=None, stderr=None,\
capture_output=False, shell=False, cwd=None, timeout=None, \
check=False, encoding=None, errors=None, text=None, env=None)
check=False, encoding=None, errors=None, text=None, env=None, \
universal_newlines=None)

Run the command described by *args*. Wait for command to complete, then
return a :class:`CompletedProcess` instance.
Expand Down Expand Up @@ -334,7 +335,7 @@ functions.

.. class:: Popen(args, bufsize=-1, executable=None, stdin=None, stdout=None, \
stderr=None, preexec_fn=None, close_fds=True, shell=False, \
cwd=None, env=None, universal_newlines=False, \
cwd=None, env=None, universal_newlines=None, \
startupinfo=None, creationflags=0, restore_signals=True, \
start_new_session=False, pass_fds=(), *, \
encoding=None, errors=None, text=None)
Expand Down Expand Up @@ -1055,7 +1056,7 @@ calls these functions.

.. function:: check_output(args, *, stdin=None, stderr=None, shell=False, \
cwd=None, encoding=None, errors=None, \
universal_newlines=False, timeout=None)
universal_newlines=None, timeout=None, text=None)

Run command with arguments and return its output.

Expand Down Expand Up @@ -1101,6 +1102,10 @@ calls these functions.
.. versionchanged:: 3.6
*encoding* and *errors* were added. See :func:`run` for details.

.. versionadded:: 3.7
*text* was added as a more readable alias for *universal_newlines*.


.. _subprocess-replacements:

Replacing Older Functions with the :mod:`subprocess` Module
Expand Down