#NEWLINE# @ tornado . gen . coroutine #NEWLINE# def execcode_boolop( self , nod ) : #NEWLINE# #INDENT# optyp = type ( nod . op ) #NEWLINE# assert ( len ( nod . values ) > 0 ) #NEWLINE# if ( optyp is ast . And ) : #NEWLINE# #INDENT# for subnod in nod . values : #NEWLINE# #INDENT# val = ( yield self . execcode_expr ( subnod ) ) #NEWLINE# if ( not val ) : #NEWLINE# #INDENT# return val #NEWLINE# #UNINDENT# #UNINDENT# return val #NEWLINE# #UNINDENT# if ( optyp is ast . Or ) : #NEWLINE# #INDENT# for subnod in nod . values : #NEWLINE# #INDENT# val = ( yield self . execcode_expr ( subnod ) ) #NEWLINE# if val : #NEWLINE# #INDENT# return val #NEWLINE# #UNINDENT# #UNINDENT# return val #NEWLINE# #UNINDENT# raise NotImplementedError ( ( 'Script boolop type not implemented: %s' % ( optyp . __name__ , ) ) )