a little bit better...
def _authors_match(self, song, authors):
author_list = [] for author in song.authors: author_list.append(author.display_name) if author.display_name in authors: author_list.remove(author.display_name) else: return False # List must be empty at the end return not author_list
a little bit better...
def _authors_ match(self, song, authors):
author_list = [] list.append( author. display_ name)
author_ list.remove( author. display_ name)
return False
for author in song.authors:
author_
if author.display_name in authors:
else:
# List must be empty at the end
return not author_list