bpo-39976: Add **other_popen_kwargs to subprocess docs (GH-20145)

Patch by Zackery Spytz.
This commit is contained in:
Zackery Spytz 2020-05-17 04:52:47 -06:00 committed by GitHub
parent fa098b6bc8
commit 46545000c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -40,7 +40,7 @@ compatibility with older versions, see the :ref:`call-function-trio` section.
.. function:: run(args, *, stdin=None, input=None, stdout=None, stderr=None,\ .. function:: run(args, *, stdin=None, input=None, stdout=None, stderr=None,\
capture_output=False, shell=False, cwd=None, timeout=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) universal_newlines=None, **other_popen_kwargs)
Run the command described by *args*. Wait for command to complete, then Run the command described by *args*. Wait for command to complete, then
return a :class:`CompletedProcess` instance. return a :class:`CompletedProcess` instance.
@ -1085,7 +1085,8 @@ Prior to Python 3.5, these three functions comprised the high level API to
subprocess. You can now use :func:`run` in many cases, but lots of existing code subprocess. You can now use :func:`run` in many cases, but lots of existing code
calls these functions. calls these functions.
.. function:: call(args, *, stdin=None, stdout=None, stderr=None, shell=False, cwd=None, timeout=None) .. function:: call(args, *, stdin=None, stdout=None, stderr=None, \
shell=False, cwd=None, timeout=None, **other_popen_kwargs)
Run the command described by *args*. Wait for command to complete, then Run the command described by *args*. Wait for command to complete, then
return the :attr:`~Popen.returncode` attribute. return the :attr:`~Popen.returncode` attribute.
@ -1111,7 +1112,9 @@ calls these functions.
.. versionchanged:: 3.3 .. versionchanged:: 3.3
*timeout* was added. *timeout* was added.
.. function:: check_call(args, *, stdin=None, stdout=None, stderr=None, shell=False, cwd=None, timeout=None) .. function:: check_call(args, *, stdin=None, stdout=None, stderr=None, \
shell=False, cwd=None, timeout=None, \
**other_popen_kwargs)
Run command with arguments. Wait for command to complete. If the return Run command with arguments. Wait for command to complete. If the return
code was zero then return, otherwise raise :exc:`CalledProcessError`. The code was zero then return, otherwise raise :exc:`CalledProcessError`. The
@ -1142,7 +1145,8 @@ calls these functions.
.. function:: check_output(args, *, stdin=None, stderr=None, shell=False, \ .. function:: check_output(args, *, stdin=None, stderr=None, shell=False, \
cwd=None, encoding=None, errors=None, \ cwd=None, encoding=None, errors=None, \
universal_newlines=None, timeout=None, text=None) universal_newlines=None, timeout=None, text=None, \
**other_popen_kwargs)
Run command with arguments and return its output. Run command with arguments and return its output.