mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add note on capture_output arg to subprocess.run() docstring (GH-98012)
add note on capture_output arg to the docstring
(cherry picked from commit 80b3e32d62
)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
This commit is contained in:
parent
245ea1f500
commit
69029bd2ca
1 changed files with 2 additions and 1 deletions
|
@ -509,7 +509,8 @@ def run(*popenargs,
|
|||
|
||||
The returned instance will have attributes args, returncode, stdout and
|
||||
stderr. By default, stdout and stderr are not captured, and those attributes
|
||||
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
|
||||
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
|
||||
or pass capture_output=True to capture both.
|
||||
|
||||
If check is True and the exit code was non-zero, it raises a
|
||||
CalledProcessError. The CalledProcessError object will have the return code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue