#NEWLINE# def read_stdout( self , num_bytes ) : #NEWLINE# #INDENT# if self . using_pty : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# data = os . read ( self . parent_fd , num_bytes ) #NEWLINE# #UNINDENT# except OSError as e : #NEWLINE# #INDENT# if ( 'Input/output error' not in str ( e ) ) : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# data = None #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# data = os . read ( self . process . stdout . fileno ( ) , num_bytes ) #NEWLINE# #UNINDENT# return data