diff options
author | Zachary Ware <zach@python.org> | 2024-05-29 22:19:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 22:19:54 (GMT) |
commit | 2cc3502f98bb9aea386ab55443fc077ddcdde91d (patch) | |
tree | f8a246407c01c8d090d147e3e32ee64ebeff1398 /Doc | |
parent | 7ff61f51b6f75315291419269295a8ac3933397b (diff) | |
download | cpython-2cc3502f98bb9aea386ab55443fc077ddcdde91d.zip cpython-2cc3502f98bb9aea386ab55443fc077ddcdde91d.tar.gz cpython-2cc3502f98bb9aea386ab55443fc077ddcdde91d.tar.bz2 |
subprocess docs: Fix semantically important typo (GH-119752)
GH-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.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/subprocess.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index d77dc8b..3a2178e 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -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` |