Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore CompareEq AttributeLoad NameLoad attr Str If NameLoad body ImportFrom alias alias ImportFrom alias Import alias orelse Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr If CompareIs NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Return TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Assign NameStore Num orelse If CompareLt NameLoad Num body Assign NameStore Num Return TupleLoad Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list If NameLoad body FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr Str ExceptHandler type TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad name NameStore body If CompareIn SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad Num AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Str Raise Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad Num If CompareLt NameLoad NameLoad body Assign NameStore NameLoad If CompareGt NameLoad Num body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr NameLoad ExceptHandler type TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad name NameStore body If CompareIn SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad Num AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad Raise Expr Call AttributeLoad Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad attr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list orelse FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad If UnaryOpNot SubscriptLoad Call AttributeLoad NameLoad attr ListLoad ListLoad AttributeLoad NameLoad attr ListLoad Num Index Num body Return Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Str Raise Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr BinOpBitOr NameLoad AttributeLoad NameLoad attr TryFinally body If UnaryOpNot SubscriptLoad Call AttributeLoad NameLoad attr ListLoad NameLoad ListLoad ListLoad Num Index Num body Return Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad attr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Return NameLoad finalbody If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore Num While CompareIs Call AttributeLoad NameLoad attr NameLoad body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Num Expr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Num Expr Call AttributeLoad NameLoad attr AugAssignAdd NameStore Num If CompareGt NameLoad Num body Assign NameStore Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Return TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A 
    :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)`


    salt.utils.nb_popen
    ~~~~~~~~~~~~~~~~~~~

    Non blocking subprocess Popen.

    This functionality has been adapted to work on windows following the recipe
    found on:

        http://code.activestate.com/recipes/440554/
 __future__ absolute_import N/A os N/A sys N/A time N/A errno N/A select N/A logging N/A tempfile N/A subprocess N/A mswindows N/A N/A sys platform win32 N/A mswindows N/A win32file ReadFile WriteFile win32pipe PeekNamedPipe N/A msvcrt N/A N/A fcntl N/A log N/A N/A logging getLogger __name__ NonBlockingPopen N/A N/A subprocess Popen N/A N/A _stdout_logger_name_ salt.utils.nb_popen.STDOUT.PID-{pid} N/A _stderr_logger_name_ salt.utils.nb_popen.STDERR.PID-{pid} __init__ N/A N/A self N/A args kwargs N/A N/A N/A self stream_stds N/A N/A kwargs pop stream_stds False N/A N/A self max_size_in_mem N/A N/A kwargs pop max_size_in_mem 512000 N/A N/A self _stdout_logger_name_ N/A N/A kwargs pop stdout_logger_name N/A self _stdout_logger_name_ N/A N/A self _stderr_logger_name_ N/A N/A kwargs pop stderr_logger_name N/A self _stderr_logger_name_ N/A logging_command N/A N/A kwargs pop logging_command None N/A stderr N/A N/A kwargs get stderr None N/A N/A N/A N/A super NonBlockingPopen self __init__ args kwargs N/A N/A self stdout_buff N/A N/A tempfile SpooledTemporaryFile N/A self max_size_in_mem N/A N/A self _stdout_logger N/A N/A logging getLogger N/A N/A N/A self _stdout_logger_name_ format pid N/A self pid N/A N/A stderr N/A subprocess STDOUT N/A N/A N/A self stderr_buff N/A self stdout_buff N/A N/A self _stderr_logger N/A self _stdout_logger N/A N/A N/A self stderr_buff N/A N/A tempfile SpooledTemporaryFile N/A self max_size_in_mem N/A N/A self _stderr_logger N/A N/A logging getLogger N/A N/A N/A self _stderr_logger_name_ format pid N/A self pid N/A N/A self _stderr_logger N/A N/A logging getLogger N/A N/A N/A self _stderr_logger_name_ format pid N/A self pid N/A N/A logging_command None N/A N/A N/A N/A log info N/A N/A Running command under pid {0}: {1!r} format N/A self pid args N/A N/A N/A N/A log info N/A N/A Running command under pid {0}: {1!r} format N/A self pid logging_command N/A recv N/A N/A self maxsize N/A None N/A N/A N/A N/A self _recv stdout maxsize N/A recv_err N/A N/A self maxsize N/A None N/A N/A N/A N/A self _recv stderr maxsize N/A send_recv N/A N/A self input maxsize N/A None N/A N/A N/A N/A N/A self send input N/A N/A self recv maxsize N/A N/A self recv_err maxsize N/A get_conn_maxsize N/A N/A self which maxsize N/A N/A N/A N/A maxsize None N/A N/A maxsize 1024 N/A N/A N/A maxsize 1 N/A N/A maxsize 1 N/A N/A N/A getattr self which maxsize N/A _close N/A N/A self which N/A N/A N/A N/A N/A N/A getattr self which close N/A N/A setattr self which None N/A N/A mswindows N/A send N/A N/A self input N/A N/A N/A N/A N/A self stdin N/A N/A None N/A N/A N/A x N/A N/A msvcrt get_osfhandle N/A N/A N/A self stdin fileno N/A N/A errCode written N/A WriteFile x input N/A N/A N/A ValueError N/A N/A N/A N/A self _close stdin N/A N/A N/A N/A N/A subprocess pywintypes error Exception N/A why N/A N/A N/A N/A N/A why args N/A 0 N/A 109 N/A errno ESHUTDOWN N/A N/A N/A N/A self _close stdin N/A N/A written N/A _recv N/A N/A self which maxsize N/A N/A N/A N/A conn maxsize N/A N/A self get_conn_maxsize which maxsize N/A N/A conn None N/A N/A None N/A N/A N/A x N/A N/A msvcrt get_osfhandle N/A N/A conn fileno N/A N/A read nAvail nMessage N/A PeekNamedPipe x 0 N/A N/A maxsize nAvail N/A N/A nAvail maxsize N/A N/A nAvail 0 N/A N/A N/A errCode read N/A ReadFile x nAvail None N/A N/A N/A ValueError N/A N/A N/A N/A self _close which N/A N/A N/A N/A N/A subprocess pywintypes error Exception N/A why N/A N/A N/A N/A N/A why args N/A 0 N/A 109 N/A errno ESHUTDOWN N/A N/A N/A N/A self _close which N/A N/A N/A N/A N/A getattr self N/A N/A {0}_buff format which write read N/A N/A N/A N/A getattr self N/A N/A _{0}_logger format which debug N/A N/A read rstrip N/A N/A self stream_stds N/A N/A N/A N/A N/A getattr sys which write read N/A N/A self universal_newlines N/A N/A read N/A N/A self _translate_newlines read N/A read N/A N/A send N/A N/A self input N/A N/A N/A N/A N/A self stdin N/A N/A None N/A N/A N/A N/A N/A select select N/A N/A N/A self stdin N/A 0 N/A 1 N/A N/A 0 N/A N/A N/A written N/A N/A os write N/A N/A N/A self stdin fileno input N/A N/A N/A OSError N/A why N/A N/A N/A N/A N/A why args N/A 0 N/A errno EPIPE N/A N/A N/A N/A self _close stdin N/A N/A written N/A _recv N/A N/A self which maxsize N/A N/A N/A N/A conn maxsize N/A N/A self get_conn_maxsize which maxsize N/A N/A conn None N/A N/A None N/A flags N/A N/A fcntl fcntl conn N/A fcntl F_GETFL N/A N/A N/A conn closed N/A N/A N/A N/A fcntl fcntl conn N/A fcntl F_SETFL N/A flags N/A os O_NONBLOCK N/A N/A N/A N/A N/A N/A N/A select select N/A conn N/A N/A 0 N/A 0 N/A N/A N/A buff N/A N/A conn read maxsize N/A N/A buff N/A N/A N/A N/A self _close which N/A N/A self universal_newlines N/A N/A buff N/A N/A self _translate_newlines buff N/A N/A N/A N/A getattr self N/A N/A {0}_buff format which write buff N/A N/A N/A N/A getattr self N/A N/A _{0}_logger format which debug N/A N/A buff rstrip N/A N/A self stream_stds N/A N/A N/A N/A N/A getattr sys which write buff N/A buff N/A N/A N/A N/A conn closed N/A N/A N/A N/A fcntl fcntl conn N/A fcntl F_SETFL flags N/A poll_and_read_until_finish N/A N/A self interval N/A 0.01 N/A N/A silent_iterations 0 N/A N/A N/A N/A self poll None N/A N/A N/A N/A self stdout None N/A N/A silent_iterations 0 N/A N/A N/A self recv N/A N/A N/A self stderr None N/A N/A silent_iterations 0 N/A N/A N/A self recv_err N/A silent_iterations 1 N/A N/A silent_iterations 100 N/A N/A silent_iterations 0 N/A N/A stdoutdata stderrdata N/A N/A self communicate N/A stdoutdata N/A N/A N/A N/A log debug stdoutdata N/A stderrdata N/A N/A N/A N/A log error stderrdata N/A N/A N/A time sleep interval N/A communicate N/A N/A self input N/A None N/A N/A N/A N/A N/A super NonBlockingPopen self communicate input N/A N/A N/A N/A self stdout_buff flush N/A N/A N/A N/A self stdout_buff seek 0 N/A N/A N/A N/A self stderr_buff flush N/A N/A N/A N/A self stderr_buff seek 0 N/A N/A N/A N/A N/A self stdout_buff read N/A N/A N/A self stderr_buff read N/A N/A