#NEWLINE# def call( self , options , capture = False ) : #NEWLINE# #INDENT# out = StringIO ( ) #NEWLINE# with redirect_stdout ( out ) : #NEWLINE# #INDENT# code = main ( options . split ( ) ) #NEWLINE# #UNINDENT# output = out . getvalue ( ) #NEWLINE# out . close ( ) #NEWLINE# if capture : #NEWLINE# #INDENT# return ( code , output ) #NEWLINE# #UNINDENT# return code