#NEWLINE# def __init__( self , command , output_pipe = None ) : #NEWLINE# #INDENT# self . closed = False #NEWLINE# self . _command = output_pipe #NEWLINE# self . _output_pipe = output_pipe #NEWLINE# self . _process = subprocess . Popen ( command , stdin = subprocess . PIPE , stdout = output_pipe , close_fds = True ) #NEWLINE# self . _flushcount = 0