Skip to content

Commit e4d74db

Browse files
zwareestyxx
authored andcommitted
subprocess docs: Fix semantically important typo (pythonGH-119752)
pythonGH-25416 accidentally replaced a reference to the *stderr* argument of `subprocess.run` with a reference to the *stdin* argument. *stdin* is not affected by the `check_output` option.
1 parent b64cd9f commit e4d74db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/subprocess.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ underlying :class:`Popen` interface can be used directly.
5252

5353
If *capture_output* is true, stdout and stderr will be captured.
5454
When used, the internal :class:`Popen` object is automatically created with
55-
*stdout* and *stdin* both set to :data:`~subprocess.PIPE`.
55+
*stdout* and *stderr* both set to :data:`~subprocess.PIPE`.
5656
The *stdout* and *stderr* arguments may not be supplied at the same time as *capture_output*.
5757
If you wish to capture and combine both streams into one,
5858
set *stdout* to :data:`~subprocess.PIPE`

0 commit comments

Comments
 (0)