File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1336,14 +1336,15 @@ handling consistency are valid for these functions.
1336
1336
Windows support was added.
1337
1337
1338
1338
The function now returns (exitcode, output) instead of (status, output)
1339
- as it did in Python 3.3.3 and earlier. See :func: `WEXITSTATUS `.
1339
+ as it did in Python 3.3.3 and earlier. exitcode has the same value as
1340
+ :attr: `~Popen.returncode `.
1340
1341
1341
1342
1342
1343
.. function :: getoutput(cmd)
1343
1344
1344
1345
Return output (stdout and stderr) of executing *cmd * in a shell.
1345
1346
1346
- Like :func: `getstatusoutput `, except the exit status is ignored and the return
1347
+ Like :func: `getstatusoutput `, except the exit code is ignored and the return
1347
1348
value is a string containing the command's output. Example::
1348
1349
1349
1350
>>> subprocess.getoutput('ls /bin/ls')
You can’t perform that action at this time.
0 commit comments