Skip to content
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
8 changes: 4 additions & 4 deletions Doc/library/subprocess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ calls these functions.
Run the command described by *args*. Wait for command to complete, then
return the :attr:`~Popen.returncode` attribute.

Code needing to capture stdout or stderr should use :func:`run` instead:
Code needing to capture stdout or stderr should use :func:`run` instead::

run(...).returncode

Expand Down Expand Up @@ -1069,7 +1069,7 @@ calls these functions.
:exc:`CalledProcessError` object will have the return code in the
:attr:`~CalledProcessError.returncode` attribute.

Code needing to capture stdout or stderr should use :func:`run` instead:
Code needing to capture stdout or stderr should use :func:`run` instead::

run(..., check=True)

Expand Down Expand Up @@ -1191,8 +1191,8 @@ becomes::
p1.stdout.close() # Allow p1 to receive a SIGPIPE if p2 exits.
output = p2.communicate()[0]

The p1.stdout.close() call after starting the p2 is important in order for p1
to receive a SIGPIPE if p2 exits before p1.
The ``p1.stdout.close()`` call after starting the p2 is important in order for
p1 to receive a SIGPIPE if p2 exits before p1.

Alternatively, for trusted input, the shell's own pipeline support may still
be used directly:
Expand Down