def _create_whitelist_set(whitelist_path):
 f = open(whitelist_path, 'r')
 whitelist_set = set([line.strip() for line in f])
 f.close()
 return whitelist_set

def _create_whitelist_set ( whitelist_path ) : f = open ( whitelist_path , 'r' ) whitelist_set = set ( [ line . strip ( ) for line in f ] ) f . close ( ) return whitelist_set
create a set with contents from a whitelist file for membership testing .