]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] subprocess docs: Fix semantically important typo (GH-119752) (#119758)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 30 May 2024 07:50:23 +0000 (09:50 +0200)
committerGitHub <noreply@github.com>
Thu, 30 May 2024 07:50:23 +0000 (08:50 +0100)
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.
(cherry picked from commit 2cc3502f98bb9aea386ab55443fc077ddcdde91d)

Co-authored-by: Zachary Ware <zach@python.org>
Doc/library/subprocess.rst

index d12f355453475b4a0539c48711b8866e05a9fa1b..33f96a2f7449026322c19fe772ee00eff6325a53 100644 (file)
@@ -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`