We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 245ea1f commit 69029bdCopy full SHA for 69029bd
Lib/subprocess.py
@@ -509,7 +509,8 @@ def run(*popenargs,
509
510
The returned instance will have attributes args, returncode, stdout and
511
stderr. By default, stdout and stderr are not captured, and those attributes
512
- 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,
513
+ or pass capture_output=True to capture both.
514
515
If check is True and the exit code was non-zero, it raises a
516
CalledProcessError. The CalledProcessError object will have the return code
0 commit comments