def is_eligible_node(node):
 if ((node._id == POPULAR_LINKS_NODE) or (node._id == NEW_AND_NOTEWORTHY_LINKS_NODE)):
  return False
 for contrib in node.contributors:
  if (contrib._id in NEW_AND_NOTEWORTHY_CONTRIBUTOR_BLACKLIST):
   logger.info('Node {} skipped because a contributor, {}, is blacklisted.'.format(node._id, contrib._id))
   return False
 return True

def is_eligible_node ( node ) : if ( ( node . _id == POPULAR_LINKS_NODE ) or ( node . _id == NEW_AND_NOTEWORTHY_LINKS_NODE ) ) : return False for contrib in node . contributors : if ( contrib . _id in NEW_AND_NOTEWORTHY_CONTRIBUTOR_BLACKLIST ) : logger . info ( 'Node {} skipped because a contributor, {}, is blacklisted.' . format ( node . _id , contrib . _id ) ) return False return True
check to ensure that node is not the popular or new_and_noteworthy links_node .