diff options
author | Tim Golden <mail@timgolden.me.uk> | 2013-11-05 12:57:25 (GMT) |
---|---|---|
committer | Tim Golden <mail@timgolden.me.uk> | 2013-11-05 12:57:25 (GMT) |
commit | 607981402cba9dc783eb8a934d9814c77b824c6b (patch) | |
tree | 749d04d4b4cab5fd9497e51438a7b58126ede9df /Doc/library/subprocess.rst | |
parent | be47cffcb2b93c6d269d45ac0e18700e566b79fd (diff) | |
download | cpython-607981402cba9dc783eb8a934d9814c77b824c6b.zip cpython-607981402cba9dc783eb8a934d9814c77b824c6b.tar.gz cpython-607981402cba9dc783eb8a934d9814c77b824c6b.tar.bz2 |
Issue #10197 Tweak docs for subprocess.getstatusoutput and align the documentation, the module docstring, and the function docstring.
Diffstat (limited to 'Doc/library/subprocess.rst')
-rw-r--r-- | Doc/library/subprocess.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 96a0033..2e88319 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -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 |