diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-19 15:37:07 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-19 15:37:07 (GMT) |
commit | 43a259ff18760235ad53791593f91062dbc8642f (patch) | |
tree | cd08b8cbe4052fc3857a023ae3099a649ff176a7 /Doc/library/subprocess.rst | |
parent | 6d0b19f1e8f58c9fdf3cc022a95805657b9c8e0e (diff) | |
parent | 7d6dda4b783dc8720b354e5ede766fcb8407de14 (diff) | |
download | cpython-43a259ff18760235ad53791593f91062dbc8642f.zip cpython-43a259ff18760235ad53791593f91062dbc8642f.tar.gz cpython-43a259ff18760235ad53791593f91062dbc8642f.tar.bz2 |
Issue #19795: Improved more markups of True/False.
Diffstat (limited to 'Doc/library/subprocess.rst')
-rw-r--r-- | Doc/library/subprocess.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 26cf5bc..ad2abe8 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -61,16 +61,16 @@ compatibility with older versions, see the :ref:`call-function-trio` section. The *input* argument is passed to :meth:`Popen.communicate` and thus to the subprocess's stdin. If used it must be a byte sequence, or a string if - *encoding* or *errors* is specified or *universal_newlines* is True. When + *encoding* or *errors* is specified or *universal_newlines* is true. When used, the internal :class:`Popen` object is automatically created with ``stdin=PIPE``, and the *stdin* argument may not be used as well. - If *check* is True, and the process exits with a non-zero exit code, a + If *check* is true, and the process exits with a non-zero exit code, a :exc:`CalledProcessError` exception will be raised. Attributes of that exception hold the arguments, the exit code, and stdout and stderr if they were captured. - If *encoding* or *errors* are specified, or *universal_newlines* is True, + If *encoding* or *errors* are specified, or *universal_newlines* is true, file objects for stdin, stdout and stderr are opened in text mode using the specified *encoding* and *errors* or the :class:`io.TextIOWrapper` default. Otherwise, file objects are opened in binary mode. @@ -259,7 +259,7 @@ default values. The arguments that are most commonly needed are: .. index:: single: universal newlines; subprocess module - If *encoding* or *errors* are specified, or *universal_newlines* is True, + If *encoding* or *errors* are specified, or *universal_newlines* is true, the file objects *stdin*, *stdout* and *stderr* will be opened in text mode using the *encoding* and *errors* specified in the call or the defaults for :class:`io.TextIOWrapper`. |