Skip to content

Commit cfd6467

Browse files
committed
Minor ReST formatting fixes in subprocess docs
1 parent 4f9ffc9 commit cfd6467

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/subprocess.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ calls these functions.
10411041
Run the command described by *args*. Wait for command to complete, then
10421042
return the :attr:`~Popen.returncode` attribute.
10431043

1044-
Code needing to capture stdout or stderr should use :func:`run` instead:
1044+
Code needing to capture stdout or stderr should use :func:`run` instead::
10451045

10461046
run(...).returncode
10471047

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

1072-
Code needing to capture stdout or stderr should use :func:`run` instead:
1072+
Code needing to capture stdout or stderr should use :func:`run` instead::
10731073

10741074
run(..., check=True)
10751075

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

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

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

0 commit comments

Comments
 (0)