[Python-checkins] Minor ReST formatting fixes in subprocess docs (GH-14876)

Miss Islington (bot) webhook-mailer at python.org
Wed Sep 11 08:32:20 EDT 2019


https://github.com/python/cpython/commit/01ae0e269899c244c6cf779dc3a7ebdd29248859
commit: 01ae0e269899c244c6cf779dc3a7ebdd29248859
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019年09月11日T05:32:16-07:00
summary:
Minor ReST formatting fixes in subprocess docs (GH-14876)
(cherry picked from commit 1a13efb7e05b545def26f29c954751fdb6b22fa3)
Co-authored-by: Tim Hoffmann <2836374+timhoffm at users.noreply.github.com>
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.
 
- 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
 
@@ -1076,7 +1076,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)
 
@@ -1198,8 +1198,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:


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /