def select_filters(filters, level):
 return [f for f in filters if ((f.max_debug_level is None) or (cmp_debug_levels(level, f.max_debug_level) <= 0))]

def select_filters ( filters , level ) : return [ f for f in filters if ( ( f . max_debug_level is None ) or ( cmp_debug_levels ( level , f . max_debug_level ) <= 0 ) ) ]
return from the list in filters those filters which indicate that they should run for the given debug level .