@@ -270,15 +270,14 @@ default values. The arguments that are most commonly needed are:
270
270
271
271
*stdin *, *stdout * and *stderr * specify the executed program's standard input,
272
272
standard output and standard error file handles, respectively. Valid values
273
- are :data: `PIPE `, :data: `DEVNULL `, an existing file descriptor (a positive
274
- integer), an existing file object with a valid file descriptor, and ``None ``.
275
- :data: `PIPE ` indicates that a new pipe to the child should be created.
276
- :data: `DEVNULL ` indicates that the special file :data: `os.devnull ` will
277
- be used. With the default settings of ``None ``, no redirection will occur;
278
- the child's file handles will be inherited from the parent.
279
- Additionally, *stderr * can be :data: `STDOUT `, which indicates that the
280
- stderr data from the child process should be captured into the same file
281
- handle as for *stdout *.
273
+ are ``None ``, :data: `PIPE `, :data: `DEVNULL `, an existing file descriptor (a
274
+ positive integer), and an existing :term: `file object ` with a valid file
275
+ descriptor. With the default settings of ``None ``, no redirection will
276
+ occur. :data: `PIPE ` indicates that a new pipe to the child should be
277
+ created. :data: `DEVNULL ` indicates that the special file :data: `os.devnull `
278
+ will be used. Additionally, *stderr * can be :data: `STDOUT `, which indicates
279
+ that the stderr data from the child process should be captured into the same
280
+ file handle as for *stdout *.
282
281
283
282
.. index ::
284
283
single: universal newlines; subprocess module
@@ -490,15 +489,14 @@ functions.
490
489
491
490
*stdin *, *stdout * and *stderr * specify the executed program's standard input,
492
491
standard output and standard error file handles, respectively. Valid values
493
- are :data: `PIPE `, :data: `DEVNULL `, an existing file descriptor (a positive
494
- integer), an existing :term: `file object ` with a valid file descriptor,
495
- and ``None ``. :data: `PIPE ` indicates that a new pipe to the child should
496
- be created. :data: `DEVNULL ` indicates that the special file
497
- :data: `os.devnull ` will be used. With the default settings of ``None ``,
498
- no redirection will occur; the child's file handles will be inherited from
499
- the parent. Additionally, *stderr * can be :data: `STDOUT `, which indicates
492
+ are ``None ``, :data: `PIPE `, :data: `DEVNULL `, an existing file descriptor (a
493
+ positive integer), and an existing :term: `file object ` with a valid file
494
+ descriptor. With the default settings of ``None ``, no redirection will
495
+ occur. :data: `PIPE ` indicates that a new pipe to the child should be
496
+ created. :data: `DEVNULL ` indicates that the special file :data: `os.devnull `
497
+ will be used. Additionally, *stderr * can be :data: `STDOUT `, which indicates
500
498
that the stderr data from the applications should be captured into the same
501
- file handle as for stdout.
499
+ file handle as for * stdout * .
502
500
503
501
If *preexec_fn * is set to a callable object, this object will be called in the
504
502
child process just before the child is executed.
0 commit comments