#NEWLINE# def makeBranchTree( self , condlist , flowlist , node ) : #NEWLINE# #INDENT# if ( ( len ( condlist ) == 0 ) or ( len ( flowlist ) == 0 ) ) : #NEWLINE# #INDENT# return node #NEWLINE# #UNINDENT# if ( len ( condlist ) == 1 ) : #NEWLINE# #INDENT# if flowlist [ 0 ] : #NEWLINE# #INDENT# return DFBranch ( condlist [ 0 ] , node , None ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return DFBranch ( condlist [ 0 ] , None , node ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if flowlist [ 0 ] : #NEWLINE# #INDENT# return DFBranch ( condlist [ 0 ] , self . makeBranchTree ( condlist [ 1 : ] , flowlist [ 1 : ] , node ) , None ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return DFBranch ( condlist [ 0 ] , None , self . makeBranchTree ( condlist [ 1 : ] , flowlist [ 1 : ] , node ) )