Module Import alias Import alias Import alias Import alias Import alias identifier Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore NameLoad If BoolOpAnd NameLoad Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore TupleLoad Str Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore BoolOpOr SubscriptLoad NameLoad Index Num Str Assign NameStore BoolOpOr SubscriptLoad NameLoad Index Num Str If BoolOpAnd CompareNotEq NameLoad Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Raise NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad NameLoad TryExcept body With Call NameLoad NameLoad Str NameStore body Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body TryExcept body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad body Expr Call NameLoad NameLoad If Call NameLoad NameLoad body Expr Call NameLoad NameLoad Expr Yield NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If UnaryOpNot NameLoad body Assign NameStore BinOpMod Str NameLoad With Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str NameStore body With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot NameLoad body Assign NameStore Str If CompareEq NameLoad Str body Assign NameStore Call NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body TryExcept body Return Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad body Assign NameStore Num Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Break orelse Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call NameLoad NameLoad If NameLoad body Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpBitAnd AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad orelse For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad If NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call NameLoad NameLoad If NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call NameLoad NameLoad If NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults vararg body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Assign NameStore Num If CompareIs NameLoad NameLoad body Assign NameStore Num If BoolOpAnd CompareEq NameLoad Num CompareEq NameLoad Num body Return Num Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Num For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Call NameLoad NameLoad NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad While NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad Call NameLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body TryExcept body If UnaryOpNot Call AttributeLoad NameLoad attr body Return TupleLoad NameLoad Num handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Return TupleLoad NameLoad Num Assign NameStore NameLoad Assign NameStore Num For NameStore Call NameLoad Num NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore NameLoad Break ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body If UnaryOpNot Call NameLoad NameLoad body Return TupleLoad NameLoad Num Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad BinOpDiv NameLoad Num NameLoad If NameLoad body Return TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad BinOpDiv NameLoad Num NameLoad Return TupleLoad NameLoad BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call AttributeLoad Call NameLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad body Expr Call NameLoad NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call NameLoad Call NameLoad NameLoad keyword NameLoad With Call NameLoad NameLoad Str NameStore body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num NameLoad body If UnaryOpNot Call NameLoad NameLoad body If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad keyword NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If NameLoad body Assign NameStore BinOpMod Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad Str NameStore body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot Call NameLoad NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot Call NameLoad NameLoad body Return TryExcept body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad handlers ExceptHandler type NameLoad body If UnaryOpNot NameLoad body Raise orelse Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad keyword NameLoad If BoolOpAnd NameLoad BoolOpAnd Call NameLoad NameLoad Call NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad If CompareIs NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Return AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Return AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body If UnaryOpNot NameLoad body Raise orelse Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad If NameLoad body If Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad If Call NameLoad NameLoad body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign NameStore NameLoad Assign NameStore NameLoad If Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad For NameStore ListLoad NameLoad NameLoad body If CompareNotEq NameLoad Num body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareLtE NameLoad Num body Return Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assert NameLoad Str For NameStore NameLoad body TryExcept body Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass Assign NameStore Call AttributeLoad Str attr NameLoad Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body FunctionDef arguments args NameParam defaults body If UnaryOpNot NameLoad body Return NameLoad If UnaryOpNot Call NameLoad NameLoad body Return NameLoad If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad body Return NameLoad If UnaryOpNot NameLoad body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad Call NameLoad Call NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad If Call NameLoad NameLoad body Return NameLoad Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list
N/A N/A collections N/A contextlib N/A getpass N/A grp N/A gzip gz N/A os N/A pwd N/A shutil N/A signal N/A socket N/A subprocess N/A time N/A distutils.spawn N/A psutil N/A anvil anvil env anvil exceptions excp anvil log logging N/A LOG N/A N/A logging getLogger __name__ N/A SUDO_UID N/A N/A env get_key SUDO_UID N/A SUDO_GID N/A N/A env get_key SUDO_GID N/A _TRUNCATED_OUTPUT_LINES 7 N/A getsize N/A N/A os path getsize N/A exists N/A N/A os path exists N/A basename N/A N/A os path basename N/A dirname N/A N/A os path dirname N/A canon_path N/A N/A os path realpath N/A prompt raw_input N/A isfile N/A N/A os path isfile N/A isdir N/A N/A os path isdir N/A islink N/A N/A os path islink N/A geteuid N/A os geteuid N/A getegid N/A os getegid Process N/A N/A psutil Process N/A __str__ N/A N/A self N/A N/A N/A N/A %s (%s) N/A N/A self pid N/A self name N/A N/A execute N/A N/A cmd process_input check_exit_code cwd shell env_overrides stdout_fh stderr_fh N/A None True None False None N/A subprocess PIPE N/A subprocess PIPE N/A N/A Helper method to execute a command through subprocess.

    :param cmd:             Command passed to subprocess.Popen.
    :param process_input:   Input send to opened process.
    :param check_exit_code: Specifies whether to check process return code.
                            If return code is other then `0` - exception will
                            be raised.
    :param cwd:             The child's current directory will be changed to
                            `cwd` before it is executed.
    :param shell:           Specifies whether to use the shell as the program
                            to execute.
    :param env_overrides:   Process environment parameters to override.
    :param stdout_fh:       Stdout file handler.
    :param stderr_fh:       Stderr file handler.
    :returns:               A tuple, (stdout, stderr) from the spawned process.
    :raises:                :class:`exceptions.ProcessExecutionError` when
                            process ends with other then `0` return code.
     N/A cmd N/A map str cmd N/A str_cmd N/A N/A subprocess list2cmdline cmd N/A shell N/A N/A cmd str_cmd N/A N/A N/A LOG debug N/A Running shell cmd: %r cmd N/A N/A N/A N/A LOG debug N/A Running cmd: %r cmd N/A N/A process_input None N/A N/A process_input N/A str process_input N/A N/A N/A LOG debug N/A Process input: %s process_input N/A cwd N/A N/A N/A N/A LOG debug N/A Process working directory: %r cwd N/A process_env None N/A N/A env_overrides N/A len env_overrides N/A N/A process_env N/A N/A env get N/A N/A k v N/A N/A env_overrides items N/A N/A N/A N/A LOG debug Using environment override '%s' => '%s' k v N/A N/A process_env N/A k N/A str v N/A exec_kwargs N/A stdin stdout stderr close_fds shell cwd env N/A subprocess PIPE stdout_fh stderr_fh True shell cwd process_env N/A result N/A N/A N/A N/A obj N/A N/A subprocess Popen cmd exec_kwargs N/A result N/A N/A obj communicate process_input N/A N/A N/A OSError N/A e N/A N/A N/A N/A excp ProcessExecutionError str_cmd exec_kwargs exec_kwargs description N/A %s: [%s, %s] N/A e N/A e errno N/A e strerror N/A N/A rc N/A obj returncode N/A stdout N/A N/A result N/A 0 N/A stderr N/A N/A result N/A 1 N/A N/A N/A rc 0 check_exit_code N/A N/A e N/A N/A excp ProcessExecutionError str_cmd exec_kwargs exec_kwargs stdout stdout stderr stderr exit_code rc where_output debug log N/A N/A N/A LOG debug Stdout: %s N/A e stdout N/A N/A N/A LOG debug Stderr: %s N/A e stderr N/A e N/A N/A stdout stderr N/A execute_save_output N/A N/A cmd file_name N/A kwargs N/A N/A Helper method to execute a command through subprocess and save stdout
    and stderr into a file.
     N/A kwargs N/A N/A kwargs copy N/A N/A mkdirslist N/A dirname file_name N/A N/A N/A N/A open file_name wb fh N/A N/A N/A execute cmd stdout_fh fh stderr_fh fh kwargs N/A N/A N/A N/A excp ProcessExecutionError N/A N/A N/A N/A excp reraise N/A N/A N/A N/A N/A open file_name rb fh N/A N/A lines N/A N/A collections deque fh maxlen _TRUNCATED_OUTPUT_LINES N/A content N/A N/A join lines N/A N/A N/A IOError N/A N/A N/A N/A N/A N/A LOG debug Last lines from %s:
%s file_name content N/A remove_before N/A N/A path N/A N/A N/A N/A isdir path N/A N/A N/A deldir path N/A N/A isfile path N/A N/A N/A unlink path N/A N/A path N/A N/A contextlib contextmanager gzip N/A N/A file_name gz_archive_name N/A None N/A N/A N/A N/A isfile file_name N/A N/A N/A IOError N/A Can not gzip non-existent file: %s file_name N/A N/A gz_archive_name N/A N/A gz_archive_name N/A %s.gz file_name N/A N/A N/A contextlib closing N/A N/A gz open gz_archive_name wb tz N/A N/A N/A open file_name rb fh N/A N/A N/A N/A tz write N/A N/A fh read N/A gz_archive_name N/A abspth N/A N/A path N/A N/A N/A N/A path N/A N/A path / N/A N/A path ~ N/A N/A path N/A gethomedir N/A N/A N/A N/A os path abspath path N/A hostname N/A N/A default N/A localhost N/A N/A N/A N/A N/A N/A socket gethostname N/A N/A N/A N/A socket error N/A N/A default N/A pipe_in_out N/A N/A in_fh out_fh chunk_size chunk_cb N/A 1024 None N/A N/A bytes_piped 0 N/A N/A N/A LOG debug Transferring the contents of %s to %s in chunks of size %s. in_fh out_fh chunk_size N/A True N/A N/A data N/A N/A in_fh read chunk_size N/A N/A data N/A N/A N/A N/A N/A N/A out_fh write data N/A bytes_piped N/A len data N/A chunk_cb N/A N/A N/A chunk_cb bytes_piped N/A bytes_piped N/A fileperms N/A N/A path N/A N/A N/A N/A N/A N/A N/A os stat path st_mode 511 N/A listdir N/A N/A path recursive dirs_only files_only filter_func N/A False False False None N/A N/A path N/A abspth path N/A all_contents N/A N/A N/A recursive N/A N/A all_contents N/A N/A os listdir path N/A all_contents N/A N/A joinpths path f N/A f all_contents N/A N/A N/A root dirs files N/A N/A os walk path N/A N/A d dirs N/A N/A N/A N/A all_contents append N/A joinpths root d N/A f files N/A N/A N/A N/A all_contents append N/A joinpths root f N/A dirs_only N/A N/A all_contents N/A f N/A f all_contents N/A isdir f N/A files_only N/A N/A all_contents N/A f N/A f all_contents N/A isfile f N/A filter_func N/A N/A all_contents N/A f N/A f all_contents N/A filter_func f N/A all_contents N/A joinpths N/A N/A N/A paths N/A N/A N/A N/A N/A os path join paths N/A get_suids N/A N/A N/A N/A N/A uid SUDO_UID N/A N/A uid None N/A N/A uid N/A int uid N/A gid SUDO_GID N/A N/A gid None N/A N/A gid N/A int gid N/A N/A uid gid N/A chown N/A N/A path uid gid N/A N/A N/A N/A uid None N/A N/A uid -1 N/A N/A gid None N/A N/A gid -1 N/A N/A N/A uid -1 N/A gid -1 N/A N/A 0 N/A N/A N/A LOG debug N/A Changing ownership of %r to %s:%s N/A path uid gid N/A N/A N/A os chown path uid gid N/A 1 N/A chown_r N/A N/A path uid gid N/A N/A N/A changed 0 N/A N/A root dirs files N/A N/A os walk path N/A N/A changed N/A chown root uid gid N/A d dirs N/A N/A dir_pth N/A joinpths root d N/A changed N/A chown dir_pth uid gid N/A f files N/A N/A fn_pth N/A joinpths root f N/A changed N/A chown fn_pth uid gid N/A changed N/A _explode_path N/A N/A path N/A N/A N/A dirs N/A N/A comps N/A N/A path N/A abspth path N/A N/A N/A dirs append path N/A N/A head tail N/A N/A N/A os path split path N/A tail N/A N/A N/A N/A dirs append head N/A N/A N/A comps append tail N/A path head N/A N/A head tail N/A N/A N/A os path split path N/A N/A N/A dirs sort N/A N/A N/A comps reverse N/A N/A dirs comps N/A explode_path N/A N/A path N/A N/A N/A N/A N/A _explode_path path N/A 0 N/A _attempt_kill N/A N/A proc signal_type max_try wait_time N/A N/A N/A N/A N/A N/A N/A N/A proc is_running N/A N/A N/A True 0 N/A N/A N/A N/A N/A psutil error NoSuchProcess N/A N/A N/A True 0 N/A killed False N/A attempts 0 N/A _i N/A range 0 max_try N/A N/A N/A N/A N/A N/A LOG debug N/A Attempting to kill process %s proc N/A attempts 1 N/A N/A N/A proc send_signal signal_type N/A N/A N/A LOG debug N/A Sleeping for %s seconds before next attempt to kill process %s N/A wait_time proc N/A N/A sleep wait_time N/A N/A N/A N/A N/A psutil error NoSuchProcess N/A N/A killed True N/A N/A N/A Exception N/A e N/A N/A N/A N/A LOG debug Failed killing %s due to: %s proc e N/A N/A N/A LOG debug N/A Sleeping for %s seconds before next attempt to kill process %s N/A wait_time proc N/A N/A sleep wait_time N/A N/A killed attempts N/A kill N/A N/A pid max_try wait_time N/A 4 1 N/A N/A N/A N/A is_running pid N/A N/A N/A True 0 N/A proc N/A Process pid N/A N/A killed i_attempts N/A _attempt_kill proc N/A signal SIGINT N/A int N/A max_try 2 wait_time N/A killed N/A N/A N/A True i_attempts N/A N/A killed k_attempts N/A _attempt_kill proc N/A signal SIGKILL N/A int N/A max_try 2 wait_time N/A N/A killed N/A i_attempts k_attempts N/A is_running N/A N/A pid N/A N/A N/A N/A N/A N/A N/A N/A Process pid is_running N/A N/A N/A N/A N/A psutil error NoSuchProcess N/A N/A False N/A mkdirslist N/A N/A path tracewriter N/A None N/A N/A dirs_possible N/A explode_path path N/A dirs_made N/A N/A dir_path dirs_possible N/A N/A N/A N/A isdir dir_path N/A N/A N/A mkdir dir_path recurse False N/A tracewriter N/A N/A N/A N/A tracewriter dirs_made dir_path N/A N/A N/A dirs_made append dir_path N/A dirs_made N/A append_file N/A N/A fn text flush quiet N/A True False N/A N/A N/A quiet N/A N/A N/A N/A LOG debug Appending to file %r (%d bytes) (flush=%s) fn N/A len text flush N/A N/A N/A LOG debug N/A >> %s text N/A N/A open fn a f N/A N/A N/A N/A f write text N/A flush N/A N/A N/A N/A f flush N/A fn N/A write_file N/A N/A fn text flush quiet tracewriter N/A True False None N/A N/A N/A quiet N/A N/A N/A N/A LOG debug Writing to file %r (%d bytes) (flush=%s) fn N/A len text flush N/A N/A N/A LOG debug N/A > %s text N/A N/A mkdirslist N/A dirname fn tracewriter tracewriter N/A N/A open fn w fh N/A N/A N/A isinstance text unicode N/A N/A text N/A N/A text encode utf-8 N/A N/A N/A fh write text N/A flush N/A N/A N/A N/A fh flush N/A tracewriter N/A N/A N/A N/A tracewriter file_touched fn N/A touch_file N/A N/A fn die_if_there quiet file_size tracewriter N/A True False 0 None N/A N/A N/A N/A isfile fn N/A N/A N/A quiet N/A N/A N/A N/A LOG debug Touching and truncating file %r (truncate size=%s) fn file_size N/A N/A mkdirslist N/A dirname fn tracewriter tracewriter N/A N/A open fn w fh N/A N/A N/A N/A fh truncate file_size N/A tracewriter N/A N/A N/A N/A tracewriter file_touched fn N/A N/A die_if_there N/A N/A msg N/A Can not touch & truncate file %r since it already exists fn N/A N/A N/A excp FileException msg N/A load_file N/A N/A fn N/A N/A N/A N/A open fn rb fh N/A N/A N/A N/A fh read N/A mkdir N/A N/A path recurse N/A True N/A N/A N/A N/A isdir path N/A N/A recurse N/A N/A N/A N/A LOG debug N/A Recursively creating directory %r path N/A N/A N/A os makedirs path N/A N/A N/A N/A LOG debug N/A Creating directory %r path N/A N/A N/A os mkdir path N/A path N/A deldir N/A N/A path N/A N/A N/A N/A isdir path N/A N/A N/A N/A LOG debug N/A Recursively deleting directory tree starting at %r path N/A N/A N/A shutil rmtree path N/A rmdir N/A N/A path quiet N/A True N/A N/A N/A N/A isdir path N/A N/A N/A N/A N/A N/A N/A LOG debug N/A Deleting directory %r with the cavet that we will fail if it's not empty. path N/A N/A N/A os rmdir path N/A N/A N/A LOG debug N/A Deleted directory %r path N/A N/A N/A OSError N/A N/A N/A quiet N/A N/A N/A N/A N/A symlink N/A N/A source link force tracewriter N/A True None N/A N/A N/A N/A LOG debug N/A Creating symlink from %r => %r N/A link source N/A N/A mkdirslist N/A dirname link tracewriter tracewriter N/A N/A force N/A N/A exists link N/A islink link N/A N/A N/A unlink link True N/A N/A N/A os symlink source link N/A tracewriter N/A N/A N/A N/A tracewriter symlink_made link N/A getuser N/A N/A N/A N/A N/A N/A uid _gid N/A get_suids N/A N/A uid None N/A N/A N/A N/A getpass getuser N/A N/A N/A N/A pwd getpwuid uid pw_name N/A getuid N/A N/A username N/A N/A N/A N/A N/A N/A pwd getpwnam username pw_uid N/A gethomedir N/A N/A user N/A None N/A N/A N/A user N/A N/A user N/A getuser N/A home_dir N/A N/A N/A os path expanduser N/A ~%s user N/A home_dir N/A getgid N/A N/A groupname N/A N/A N/A N/A N/A N/A grp getgrnam groupname gr_gid N/A getgroupname N/A N/A N/A N/A N/A N/A _uid gid N/A get_suids N/A N/A gid None N/A N/A gid N/A N/A os getgid N/A N/A N/A N/A grp getgrgid gid gr_name N/A unlink N/A N/A path ignore_errors N/A True N/A N/A N/A N/A LOG debug N/A Unlinking (removing) %r path N/A N/A N/A N/A N/A os unlink path N/A N/A N/A OSError N/A N/A N/A ignore_errors N/A N/A N/A N/A N/A copy N/A N/A src dst tracewriter N/A None N/A N/A N/A N/A LOG debug N/A Copying: %r => %r N/A src dst N/A N/A N/A shutil copy src dst N/A tracewriter N/A N/A N/A N/A tracewriter file_touched dst N/A dst N/A move N/A N/A src dst force N/A False N/A N/A N/A N/A LOG debug N/A Moving: %r => %r N/A src dst N/A force N/A N/A N/A isdir dst N/A N/A dst N/A joinpths dst N/A basename src N/A N/A isfile dst N/A N/A N/A unlink dst N/A N/A N/A shutil move src dst N/A dst N/A write_file_and_backup N/A N/A path contents bk_ext N/A org N/A N/A perms None N/A backup_path None N/A N/A isfile path N/A N/A perms N/A fileperms path N/A backup_path N/A %s.%s N/A path bk_ext N/A N/A N/A isfile backup_path N/A N/A N/A N/A LOG debug Backing up %s => %s path backup_path N/A N/A move path backup_path N/A N/A N/A N/A LOG debug Leaving original backup of %s at %s path backup_path N/A N/A write_file path contents N/A N/A perms None N/A N/A N/A chmod path perms N/A backup_path N/A chmod N/A N/A fname mode N/A N/A N/A N/A N/A LOG debug N/A Applying chmod: %r to %o N/A fname mode N/A N/A N/A os chmod fname mode N/A fname N/A got_root N/A N/A N/A N/A N/A e_id N/A geteuid N/A g_id N/A getegid N/A a_id N/A e_id g_id N/A N/A N/A a_id 0 N/A N/A False N/A True N/A sleep N/A N/A winks N/A N/A N/A N/A winks 0 N/A N/A N/A N/A N/A time sleep winks N/A which_first N/A N/A bin_names additional_dirs ensure_executable N/A None True N/A N/A bin_names Binary names required N/A b bin_names N/A N/A N/A N/A N/A which b additional_dirs additional_dirs ensure_executable ensure_executable N/A N/A N/A N/A excp FileException N/A N/A N/A bin_names N/A N/A ,  join bin_names N/A N/A N/A excp FileException N/A Can't find any of %s bin_names N/A which N/A N/A bin_name additional_dirs ensure_executable N/A None True N/A check_it N/A N/A path N/A N/A N/A N/A path N/A N/A False N/A N/A N/A isfile path N/A N/A False N/A N/A ensure_executable N/A N/A N/A os access path N/A os X_OK N/A N/A False N/A True N/A N/A full_name N/A N/A N/A distutils spawn find_executable bin_name N/A N/A check_it full_name N/A N/A full_name N/A N/A additional_dirs N/A N/A additional_dirs N/A N/A dir_name additional_dirs N/A N/A full_name N/A joinpths N/A dirname N/A dirname N/A abspth N/A anvil __file__ dir_name bin_name N/A N/A check_it full_name N/A N/A full_name N/A N/A N/A excp FileException N/A Can't find %s bin_name N/A