#NEWLINE# def visit_combination( self , combination ) : #NEWLINE# #INDENT# if ( combination . operation == combination . AND ) : #NEWLINE# #INDENT# if all ( ( isinstance ( node , Q ) for node in combination . children ) ) : #NEWLINE# #INDENT# queries = [ n . query for n in combination . children ] #NEWLINE# try : #NEWLINE# #INDENT# return Q ( ** self . _query_conjunction ( queries ) ) #NEWLINE# #UNINDENT# except DuplicateQueryConditionsError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return combination