mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #10197 Tweak docs for subprocess.getstatusoutput and align the documentation, the module docstring, and the function docstring.
This commit is contained in:
parent
be47cffcb2
commit
607981402c
2 changed files with 18 additions and 14 deletions
|
@ -1058,9 +1058,9 @@ handling consistency are valid for these functions.
|
|||
|
||||
Return ``(status, output)`` of executing *cmd* in a shell.
|
||||
|
||||
Execute the string *cmd* in a shell with :class:`Popen` and return a 2-tuple
|
||||
``(status, output)`` via :func:`Popen.communicate`. Universal newlines mode
|
||||
is used; see the notes on :ref:`frequently-used-arguments` for more details.
|
||||
Execute the string *cmd* in a shell with :meth:`Popen.check_output` and
|
||||
return a 2-tuple ``(status, output)``. Universal newlines mode is used;
|
||||
see the notes on :ref:`frequently-used-arguments` for more details.
|
||||
|
||||
A trailing newline is stripped from the output.
|
||||
The exit status for the command can be interpreted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue