#NEWLINE# def compile_relation( self , method , expr , range_list , negated = False ) : #NEWLINE# #INDENT# ranges = [ ] #NEWLINE# for item in range_list [ 1 ] : #NEWLINE# #INDENT# if ( item [ 0 ] == item [ 1 ] ) : #NEWLINE# #INDENT# ranges . append ( self . compile ( item [ 0 ] ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ranges . append ( ( '%s..%s' % tuple ( map ( self . compile , item ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ( '%s%s %s %s' % ( self . compile ( negated ) , ( ( negated and ' not' ) or '' ) , method , ',' . join ( ranges ) ) )