%PDF- %PDF-
Direktori : /usr/local/lib/python3.8/__pycache__/ |
Current File : //usr/local/lib/python3.8/__pycache__/subprocess.cpython-38.pyc |
U na. @ s d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlmZ dddddd d ddd ddddgZ zddlZddlZdZW n0 ek r dZddlZddlZddlZY nX ddlmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z& e 'dddddddddddd d!d"d#d$d%d&d'g G d(d de(Z)G d)d d e)Z*G d*d de)Z+erG d+d dZ,G d,d- d-e-Z.n&e/ed.d/Z0e1ed0rej2Z3nej4Z3erdZ5d1d2 Z6ng Z5d3d2 Z6d4Z7d5Z8d6Z9d7d8 Z:d9d: Z;dd;d<dZ<d=d Z=dd;d>dZ>G d?d de?Z@ddddd@dAdZAdBdC ZBdDd ZCdEd ZDdFdG ZEeE ZFG dHd de?ZGdS )Ia Subprocesses with accessible I/O streams This module allows you to spawn processes, connect to their input/output/error pipes, and obtain their return codes. For a complete description of this module see the Python documentation. Main API ======== run(...): Runs a command, waits for it to complete, then returns a CompletedProcess instance. Popen(...): A class for flexibly executing a command in a new process Constants --------- DEVNULL: Special value that indicates that os.devnull should be used PIPE: Special value that indicates a pipe should be created STDOUT: Special value that indicates that stderr should go to stdout Older API ========= call(...): Runs a command, waits for it to complete, then returns the return code. check_call(...): Same as call() but raises CalledProcessError() if return code is not 0 check_output(...): Same as check_call() but returns the contents of stdout instead of a return code getoutput(...): Runs a command in the shell, waits for it to complete, then returns the output getstatusoutput(...): Runs a command in the shell, waits for it to complete, then returns a (exitcode, output) tuple N) monotonicPopenPIPESTDOUTcall check_callgetstatusoutput getoutputcheck_outputrunCalledProcessErrorDEVNULLSubprocessErrorTimeoutExpiredCompletedProcessTF)CREATE_NEW_CONSOLECREATE_NEW_PROCESS_GROUPSTD_INPUT_HANDLESTD_OUTPUT_HANDLESTD_ERROR_HANDLESW_HIDESTARTF_USESTDHANDLESSTARTF_USESHOWWINDOWABOVE_NORMAL_PRIORITY_CLASSBELOW_NORMAL_PRIORITY_CLASSHIGH_PRIORITY_CLASSIDLE_PRIORITY_CLASSNORMAL_PRIORITY_CLASSREALTIME_PRIORITY_CLASSCREATE_NO_WINDOWDETACHED_PROCESSCREATE_DEFAULT_ERROR_MODECREATE_BREAKAWAY_FROM_JOBr r r r r r r r STARTUPINFOr r r r r r r r r! r"