#NEWLINE# def build( self , result = '9\n' ) : #NEWLINE# #INDENT# pi = planning . Interactive ( ) #NEWLINE# pi . out = cStringIO . StringIO ( ) #NEWLINE# if isinstance ( result , BaseException ) : #NEWLINE# #INDENT# def raiser( ) : #NEWLINE# #INDENT# raise result #NEWLINE# #UNINDENT# pi . raw_input = pi #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# pi . raw_input = ( result if callable ( result ) else ( lambda : result ) ) #NEWLINE# #UNINDENT# return pi