#NEWLINE# def setup_outputs( self , args_outfiles = None ) : #NEWLINE# #INDENT# if self . outputs : #NEWLINE# #INDENT# assert ( not args_outfiles ) , 'ONLY-ONCE' #NEWLINE# return #NEWLINE# #UNINDENT# if ( not args_outfiles ) : #NEWLINE# #INDENT# self . outputs . append ( StreamOpener ( stream = sys . stdout ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for outfile in args_outfiles : #NEWLINE# #INDENT# if ( outfile and ( outfile != '-' ) ) : #NEWLINE# #INDENT# self . outputs . append ( StreamOpener ( outfile ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . outputs . append ( StreamOpener ( stream = sys . stdout ) )