]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
subprocess docs: Fix semantically important typo (GH-119752)
authorZachary Ware <zach@python.org>
Wed, 29 May 2024 22:19:54 +0000 (17:19 -0500)
committerGitHub <noreply@github.com>
Wed, 29 May 2024 22:19:54 +0000 (22:19 +0000)
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.

Doc/library/subprocess.rst

index d77dc8b04d01e4da9bb1a3cfa8b257dcee7023d6..3a2178e2b7b8395205f6ac23a5bbdfb296b754f7 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`