Issue #10197 Tweak docs for subprocess.getstatusoutput and align the documentation, the module docstring, and the function docstring.

This commit is contained in:
Tim Golden 2013-11-05 12:57:25 +00:00
parent be47cffcb2
commit 607981402c
2 changed files with 18 additions and 14 deletions

View file

@ -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