Skip to content

Commit

Permalink
subprocess docs: Fix semantically important typo (pythonGH-119752)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zware authored May 29, 2024
1 parent 7ff61f5 commit 2cc3502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/subprocess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ underlying :class:`Popen` interface can be used directly.

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

0 comments on commit 2cc3502

Please sign in to comment.