|
22 | 22 | # subprocess.CompletedProcess object |
23 | 23 | # - process can run in a custom environment, either as a modification of |
24 | 24 | # the current environment or in a new environment from scratch |
25 | | -# - stdin can be fed to the process, the returned dictionary contains |
26 | | -# information how much was read by the process |
| 25 | +# - stdin can be fed to the process |
27 | 26 | # - stdout and stderr is printed by default, can be disabled |
28 | 27 | # - stdout and stderr can be passed to any arbitrary function for |
29 | 28 | # live processing |
@@ -310,8 +309,6 @@ class ReturnObject(subprocess.CompletedProcess): |
310 | 309 | """ |
311 | 310 | A subprocess.CompletedProcess-like object containing the executed |
312 | 311 | command, stdout and stderr (both as bytestrings), and the exitcode. |
313 | | - Further values such as process runtime can be accessed as dictionary |
314 | | - values. |
315 | 312 | The check_returncode() function raises an exception if the process |
316 | 313 | exited with a non-zero exit code. |
317 | 314 | """ |
@@ -461,9 +458,8 @@ def run( |
461 | 458 | instead of returning an object that can be checked |
462 | 459 | for a timeout condition. Defaults to False, will be |
463 | 460 | changed to True in a future release. |
464 | | - :return: A ReturnObject() containing the executed command, stdout and stderr |
465 | | - (both as bytestrings), and the exitcode. Further values such as |
466 | | - process runtime can be accessed as dictionary values. |
| 461 | + :return: The exit code, stdout, stderr (separately, as byte strings) |
| 462 | + as a subprocess.CompletedProcess object. |
467 | 463 | """ |
468 | 464 |
|
469 | 465 | time_start = time.strftime("%Y-%m-%d %H:%M:%S GMT", time.gmtime()) |
|
0 commit comments