def exclude_entry(enabled, filter_type, language_list, language):
 exclude = True
 if enabled:
  if (filter_type == 'blacklist'):
   exclude = False
   if (language is not None):
    for item in language_list:
     if (language == item.lower()):
      exclude = True
      break
  elif (filter_type == 'whitelist'):
   if (language is not None):
    for item in language_list:
     if (language == item.lower()):
      exclude = False
      break
 return exclude

def exclude_entry ( enabled , filter_type , language_list , language ) : exclude = True if enabled : if ( filter_type == 'blacklist' ) : exclude = False if ( language is not None ) : for item in language_list : if ( language == item . lower ( ) ) : exclude = True break elif ( filter_type == 'whitelist' ) : if ( language is not None ) : for item in language_list : if ( language == item . lower ( ) ) : exclude = False break return exclude
exclude bracket wrapping entry by filter .