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 @@ -1199,14 +1199,15 @@ handling consistency are valid for these functions.
1199
1199
Windows support was added.
1200
1200
1201
1201
The function now returns (exitcode, output) instead of (status, output)
1202
- as it did in Python 3.3.3 and earlier. See :func: `WEXITSTATUS `.
1202
+ as it did in Python 3.3.3 and earlier. exitcode has the same value as
1203
+ :attr: `~Popen.returncode `.
1203
1204
1204
1205
1205
1206
.. function :: getoutput(cmd)
1206
1207
1207
1208
Return output (stdout and stderr) of executing *cmd * in a shell.
1208
1209
1209
- Like :func: `getstatusoutput `, except the exit status is ignored and the return
1210
+ Like :func: `getstatusoutput `, except the exit code is ignored and the return
1210
1211
value is a string containing the command's output. Example::
1211
1212
1212
1213
>>> subprocess.getoutput('ls /bin/ls')
You can’t perform that action at this time.
0 commit comments