[Python-checkins] (no subject)

Stéphane Wirtel webhook-mailer at python.org
Wed Sep 11 07:26:35 EDT 2019




To: python-checkins at python.org
Subject: Minor ReST formatting fixes in subprocess docs (#14876)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

https://github.com/python/cpython/commit/1a13efb7e05b545def26f29c954751fdb6b2=
2fa3
commit: 1a13efb7e05b545def26f29c954751fdb6b22fa3
branch: master
author: Tim Hoffmann <2836374+timhoffm at users.noreply.github.com>
committer: St=C3=A9phane Wirtel <stephane at wirtel.be>
date: 2019-09-11T13:26:31+02:00
summary:

Minor ReST formatting fixes in subprocess docs (#14876)

files:
M Doc/library/subprocess.rst

diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index 167ed9a6ead4..954e0fec1182 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -1048,7 +1048,7 @@ calls these functions.
    Run the command described by *args*.  Wait for command to complete, then
    return the :attr:`~Popen.returncode` attribute.
=20
-   Code needing to capture stdout or stderr should use :func:`run` instead:
+   Code needing to capture stdout or stderr should use :func:`run` instead::
=20
        run(...).returncode
=20
@@ -1076,7 +1076,7 @@ calls these functions.
    :exc:`CalledProcessError` object will have the return code in the
    :attr:`~CalledProcessError.returncode` attribute.
=20
-   Code needing to capture stdout or stderr should use :func:`run` instead:
+   Code needing to capture stdout or stderr should use :func:`run` instead::
=20
        run(..., check=3DTrue)
=20
@@ -1198,8 +1198,8 @@ becomes::
    p1.stdout.close()  # Allow p1 to receive a SIGPIPE if p2 exits.
    output =3D p2.communicate()[0]
=20
-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 f=
or
+p1 to receive a SIGPIPE if p2 exits before p1.
=20
 Alternatively, for trusted input, the shell's own pipeline support may still
 be used directly:



More information about the Python-checkins mailing list