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